Operating System - HP-UX
1748036 Members
4794 Online
108757 Solutions
New Discussion юеВ

Re: awk : input line too long

 
OTii
Occasional Contributor

awk : input line too long

On HPUX10.2, while parsing a text file from awk, i encounter an error saying :
Input line ...... connot be longer than 3,000 byte.

Can someone recommend how should I get away from this problem?

Thanks,
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: awk : input line too long

This is a documented limitation of HP's awk.
You'll have to split up the lines with fold(1).
I don't know if gawk has a bigger limit.
OTii
Occasional Contributor

Re: awk : input line too long

thanks for the info.
i have just install gawk, the problem soleved.

Thanks again.
OTii
Occasional Contributor

Re: awk : input line too long

problem solved with gawk.
James R. Ferguson
Acclaimed Contributor

Re: awk : input line too long

Hi:

You can also use Perl as it is unlimited.

Regards!

...JRF...