FILENAME | 输入文件名称 |
FNR | 当前输入文件记录数(当前行号) |
FS | 字段分隔符,默认为' ' |
NF | 当前记录的字段数 |
NR | 在工作(job)中记录数 |
OFS | 输出字段分隔符 |
ORS | 输出记录分隔符 |
RS | 输入记录分隔符,默认为'\n' |
ARGIND The index in ARGV of the current file being processed. 命令行中文件序号
ARGV Array of command line arguments. The array is indexed
from 0 to ARGC - 1. Dynamically changing the contents
of ARGV can control the files used for data. 命令行参数数组