Đom' Đóm Nhỏ'
New member
What is NR in awk command?
Answer
NR is a AWK built-in variable and it
denotes number of records being processed. Usage : NR can be used in action block represents number of line being processed and if it is used in END it can print number of lines totally processed. Example : Using NR to print line number in a file using AWK.
Answer
NR is a AWK built-in variable and it
denotes number of records being processed. Usage : NR can be used in action block represents number of line being processed and if it is used in END it can print number of lines totally processed. Example : Using NR to print line number in a file using AWK.