Search Results

Search: Posts Made By: boblix
3,728
Posted By Corona688
NF is a special variable that means 'number of...
NF is a special variable that means 'number of columns'. Columns are counted 1,2,...,NF.

So $NF means 'the last column', since $ means 'convert from column number into column'.
3,728
Posted By Corona688
For the first file, NR will be identical to FNR,...
For the first file, NR will be identical to FNR, so it will save the id (last column, i.e. $NF ) into the D array as D[651]=1, etc.

Then when NR stops being equal to FNR ( fnr will reset to 1, nr...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy