NR和FNR

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

原文地址:https://www.cnblogs.com/seasonsstory/p/3056634.html