Quote:
Originally Posted by penfold
Those links were very useful, Could anyone tell me why we set FNR=NR
I know what they mean, I just can't see why this would be done
Cheers
Quote:
Originally Posted by man nawk
NR number of records read so far
FNR number of records read from current file
'FNR == NR' only if you're processing the
first file given you specified multiple files on a command like line, e.g:
nawk '......' file1 file2 file3 file3 .....