SyntaxFix
Write A Post
Hire A Developer
Questions
There are awk built-in variables.
awk
NR - It gives the total number of records processed.
NR
FNR - It gives the total number of records for each input file.
FNR