天天看点

awk中NR和FNR的区别

NR  The total number of input records seen so far.

FNR The input record number in the current input file.

简单翻译:

NR  表示读到的文件行数

FNR 表示读到的当前文件行数

awk中NR和FNR的区别

转载于:https://blog.51cto.com/51network/1430397

awk