Re: awk : input line too long (348 Views)
Reply
Occasional Contributor
OTii
Posts: 6
Registered: ‎08-25-2008
Message 1 of 5 (348 Views)

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,
Acclaimed Contributor
Dennis Handly
Posts: 25,200
Registered: ‎03-06-2006
Message 2 of 5 (348 Views)

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.
Occasional Contributor
OTii
Posts: 6
Registered: ‎08-25-2008
Message 3 of 5 (348 Views)

Re: awk : input line too long

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

Thanks again.
Occasional Contributor
OTii
Posts: 6
Registered: ‎08-25-2008
Message 4 of 5 (348 Views)

Re: awk : input line too long

problem solved with gawk.
Acclaimed Contributor
James R. Ferguson
Posts: 21,184
Registered: ‎07-06-2000
Message 5 of 5 (348 Views)

Re: awk : input line too long

Hi:

You can also use Perl as it is unlimited.

Regards!

...JRF...
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.