MrUll's

Juni 15, 2004

Workaround for awk record too long problem

logfile processing with awk sometime aborts with an error like:

awk: record ` Exception: oracle....' too long
record number 1.02527e+06
Broken Pipe


Solution: shut down and deinstall oracle .)

Obviously there seems to be an upper limit for the record size (linesize) which awk is able to process. An approach is to use nawk if gawk is not present. nawk has a limitation too, but it allows larger recordsizes. Gnu awk (gawk) does not have this restriction. with gawk it is possible even to process large sized logfiles (about 400M). You can get gawk from http://sunfreeware.com/