Multiple choice

What is the meaning of $NF in awk?

  1. The last field of the current record

  2. Maximum number of records

  3. Number of fields in the record

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

$NF is used in awk for number of fields in the record.