find awk version on HP-UX ia64 B.11.31 (881 Views)
Reply
Occasional Visitor
Puspak Patnaik
Posts: 3
Registered: ‎04-19-2011
Message 1 of 8 (881 Views)

find awk version on HP-UX ia64 B.11.31

How to find awk version on my HP-UX ia64 B.11.31 system ??
Please use plain text.
Honored Contributor
Steven Schweda
Posts: 9,079
Registered: ‎02-23-2005
Message 2 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

Why do you care? If you knew its version,
what would you do with the information?

Is there some actual problem which you are
trying to solve?
Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 3 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

Hi:

HP offers "HP's" implementation. If you are expecting some GNU variant, don't.

You could try something like:

# file /usr/bin/awk

Regards!

...JRF...
Please use plain text.
Honored Contributor
Stephan.
Posts: 512
Registered: ‎10-31-2002
Message 4 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

To get some number or Patch information:

what /usr/bin/awk

hth
Stephan
Please use plain text.
Occasional Visitor
Puspak Patnaik
Posts: 3
Registered: ‎04-19-2011
Message 5 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

One of the customer is facing a problem which executing a batch file, they are getting the error
"CBALLPR cannot have more than 199 fields"

This same batch file is working properly on another server, so they need to confirm if "awk" version is same on both servers or not....

$ awk --version
Usage: awk [-F fs][-v Assignment][-f Progfile|Program][Assignment|File] ...
$ file /usr/bin/awk
/usr/bin/awk: ELF-32 executable object file - IA64

How can I find version from above ?


Please use plain text.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 6 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

Hi (again):

> "CBALLPR cannot have more than 199 fields"

This same batch file is working properly on another server, so they need to confirm if "awk" version is same on both servers or not....

Non-GNU 'awk' as found on HP-UX has the 199-field limitation.

If the same code is working on another server, ask the question (1) is this an HP-UX server, too, with a "standard" 'awk' *AND* is the data being processed identical.

If you are concerned about patches, do something like:

# swlist -l product|grep -i awk

Regards!

...JRF...
Please use plain text.
Occasional Visitor
Puspak Patnaik
Posts: 3
Registered: ‎04-19-2011
Message 7 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

$ what /usr/bin/awk
/usr/bin/awk:
main.c $Date: 2009/02/17 15:25:17 $Revision: r11.31/1 PATCH_11.31 (PHCO_36132)
run.c $Date: 2009/02/17 15:25:20 $Revision: r11.31/1 PATCH_11.31 (PHCO_36132)
$Revision: @(#) awk R11.31_BL2009_0427_1 PATCH_11.31 PHCO_36132

"what /usr/bin/awk" works...!!!!
Please use plain text.
Acclaimed Contributor
Dennis Handly
Posts: 24,891
Registered: ‎03-06-2006
Message 8 of 8 (881 Views)

Re: find awk version on HP-UX ia64 B.11.31

>"CBALLPR cannot have more than 199 fields"

This is an HP-UX awk limitation. You need to use gawk.

>This same batch file is working properly on another server, so they need to confirm if "awk" version is same on both servers or not.
$ awk --version
Usage: awk [-F fs][-v Assignment]

This may work with gawk, not HP's.
If it works on another system, as JRF suggested, perhaps the data is different?

>what /usr/bin/awk works

So do you have PHCO_36132 on both?
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation