Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.
Highlighted
James R. Ferguson
Acclaimed Contributor

Re: awk : input line too long

Hi:

You can also use Perl as it is unlimited.

Regards!

...JRF...