What is awk NR?

What is awk NR?
Answer
Awk NR
gives you the total number of records being processed or line number. In the following awk NR example, NR variable has line number, in the END section awk NR tells you the total number of records in a file.
 

Tìm kiếm

Back
Top