Languages and Scripting
Showing results for 
Search instead for 
Do you mean 

awk : input line too long

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
Highlighted
Acclaimed Contributor 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.
Occasional Contributor

Re: awk : input line too long

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

Thanks again.
Occasional Contributor

Re: awk : input line too long

problem solved with gawk.
Acclaimed Contributor Acclaimed Contributor

Re: awk : input line too long

Hi:

You can also use Perl as it is unlimited.

Regards!

...JRF...