050913:awk中几个内置变量的man说明,感觉英文记得牢点。
NR ------------------- The total number of input records seen so far.
OFMT ------------------- The output format for numbers, "%.6g", by default.
OFS ------------------- The output field separator, a space by default.
NF ------------------- The number of fields in the current input record.
NR ------------------- The total number of input records seen so far.
OFMT ------------------- The output format for numbers, "%.6g", by default.
OFS ------------------- The output field separator, a space by default.
ORS ------------------- The output record separator, by default a newline.
FILENAME ------------------- The name of the current input file. If no files are speci-
fied on the command line, the value of FILENAME is "-".
However, FILENAME is undefined inside the BEGIN block
(unless set by getline).
FNR ------------------- The input record number in the current input file.
FS ------------------- The input field separator, a space by default. See Fields,
ARGC ------------------- The number of command line arguments (does not include
options to gawk, or the program source).
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.
ENVIRON------------------- An array containing the values of the current environment.
The array is indexed by the environment variables, each
element being the value of that variable (e.g., ENVI-
RON["HOME"] might be /home/arnold). Changing this array
does not affect the environment seen by programs which gawk
spawns via redirection or the system() function.
ERRNO------------------- If a system error occurs either doing a redirection for
getline, during a read for getline, or during a close(),
then ERRNO will contain a string describing the error. The
value is subject to translation in non-English locales.
FIELDWIDTHS ------------------- A white-space separated list of fieldwidths. When set,
gawk parses the input into fields of fixed width, instead
of using the value of the FS variable as the field separa-
tor.
- · 让98也可拥有XP的开机声音
- · Windows 98全自动克隆安装盘
- · 松打造个性Win98启动画面
- · 用快捷键全面掌控你的Windo…
- · 利用Win98自带的Winipcfg命…
- · 让“状态栏”永驻“资源管理…
- · 在Win98中关闭光盘自动播放…
- · 巧用WinRAR为Win9x登陆系统…
- · 优化Windows启动提升性能
- · Win XP教程-XP高级技巧-添加无线Internet摄像机
- · Win XP教程-XP高级技巧-自动重启问题
- · Win XP教程-XP高级技巧-几个著名的Windows伪优化技巧
- · Win XP教程-XP高级技巧-揪出系统中胡作非为的DLL黑手
- · Win XP教程-XP高级技巧-常见系统文件的丢失与损坏
- · Win XP教程-XP高级技巧-传输流的下一件好事
- · Win XP教程-XP高级技巧-厨房中的Windows XP
- · Win XP教程-XP高级技巧-数字照片难题
- · Win XP教程-XP高级技巧-构建一台家用服务器
- · Win XP教程-XP高级技巧-将一台桌面计算机变成服务器
- · 在WindowsXP以幻灯片方式浏…
- · WindowsXP到底有多安全
- · 让Windows2000/XP快速复制移…
- · 让WindowsXP开始菜单变模样…
- · 让“状态栏”永驻“资源管理…
- · Windows桌面清爽五招跟我来…
- · 跳舞毯WindowsXP下安装全攻…
- · 在WindowsXP怎样让电脑开关…
- · WindowsXP中怎样禁止使用“…
- · 英文版WindowsXP的中文支持…
- · 在WinXP下640x480256色的设…
- · 修改Win2k注册表抵抗拒绝服务
- · 在Win2000中预防Ping攻击
- · Windows 2000 微软最成功的失败
- · Windows 2000中隐患重重的十大“服务”
- · NTFS格式大硬盘数据恢复特殊案例
- · 电脑高手常用技巧应用全接解
- · 有效防范自己的IP泄漏的办法
- · Win2000系统二十条超级应用技巧
