Was this helpful?
NF
The NF built-in variable is a special variable that contains the number of input fields. If IFS is defined, the input line is split using the IFS built-in variable and the number of input fields found is set in the NF built-in variable. NF should not be changed by the user.
Example
NF <= 3 { REJECT; } #
Reject all lines with less than 4 fields
Last modified date: 12/03/2024