Question: what is fnr in unix?
Answer: In awk, FNR refers to the record number (typically the line number) in the current file and NR refers to the total record number. ... This pattern is typically used to perform actions on only the first file.