gawk: Records

1 
1 4.1 How Input Is Split into Records
1 ===================================
1 
1 'awk' divides the input for your program into records and fields.  It
1 keeps track of the number of records that have been read so far from the
1 current input file.  This value is stored in a predefined variable
1 called 'FNR', which is reset to zero every time a new file is started.
1 Another predefined variable, 'NR', records the total number of input
1 records read so far from all data files.  It starts at zero, but is
1 never automatically reset to zero.
1 

Menu