Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

awk gives an error of " too many fields "

Status
Not open for further replies.

Yacov

MIS
Dec 7, 1998
5
0
0
ZA
I am trying to work with a file which have 318 fields per record. when using awk I am getting &quot; too many fields &quot; error when trying to do any thing with awk<br>
awk '{print NF}' file gives this error.<br>
<br>
Any suggestions how to proccess this file, using awk ?
 
unfortunately, one of awk's limitation is a field number restriction of 99 fields. Not sure of how to get around this unless you use a nested format of fields.
 
Try using nawk, it works for me when parsing large Openview<br>SNMP records that give that same error when using awk.
 
Yeah! Try using gawk better, it doesn't have artificial limits... it can work with all your files if you have enough memory.

I hope it works...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top