1833019 Members
2192 Online
110048 Solutions
New Discussion

awk with over 3000 bytes

 
Marcus Casserfelt
New Member

awk with over 3000 bytes

Is there any way of using the command awk on lines bigger than 3000 bytes and
that has more than 199 fields?

I know this is possible on other distributions (like Linux) but I can't get it
to work with HP-UX.

We are using HP-UX 10.20 on 9000 servers.

Thanks in advance
Marcus Casserfelt
2 REPLIES 2
Melvyn Burnard_1
Regular Advisor

Re: awk with over 3000 bytes

Currently there does not appear to be an awk on HP-UX that will allow over the
199 fields, or 3k bytes.

I believe the HP implementation has the following limits:
Number of fields per record 199
Characters per input record 3k
Characters per output record 3k
Characters per field 400

HTH
Juha Laiho
New Member

Re: awk with over 3000 bytes

For jobs that exceed the limits of HP awk you might
wish to use gawk (which is the same as the awk in Linux).

gawk binaries for HP-UX are available in the "HP-UX Porting and Archive Center"
- see the link.