1755055 Members
3050 Online
108829 Solutions
New Discussion юеВ

awk line error

 
SOLVED
Go to solution
vandevoort
Valued Contributor

awk line error

Hi I'am only the owner of this case not the the programmer : they encountered next error :
in HP-UX 11v31 Itanium ( hp-gcc-4.3.4 )
has someone have any Idea where to look at ??

(t/130)retrmsb@ahv005:lib/src$ make -f retek.mk depend 2>&1 | tee libdpnd.log
awk: Line JDBC_ALL_LRGS = srto cannot have more than 199 fields.
The input line number is 1084.
The source line number is 1.
Make: line 236: syntax error.  Stop.
*** Error exit code 1

Stop.
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor
Solution

Re: awk line error

Hi:

The 'awk' furnished by HP-UX has the limitation of 199 fields as you encountered.

One choice is to install GNU 'awk' from the Porting Center:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gawk-3.1.8/

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: awk line error

This is a limitation in awk. If the lines are also less then 3000 bytes, you could select a different field delimiter or split your own lines.
Or you need to use GNU awk, gawk, where there are no limits.
vandevoort
Valued Contributor

Re: awk line error

Thanks James and Dennis .
I downloaded the gawk.
This solved my awk(ward) situation :-) .
vandevoort
Valued Contributor

Re: awk line error

solved ..