中国IT动力,最新最全的IT技术教程
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 硬件维护 | 未整理篇 | 站长教程
ASP JS PHP工程 ASP.NET 网站建设 UML J2EESUN .NET VC VB VFP 网络维护 数据库 DB2 SQL2000 Oracle Mysql
服务器 Win2000 Office C DreamWeaver FireWorks Flash PhotoShop 上网宝典 CorelDraw 协议大全 网络安全 微软认证
硬件维护  CPU  主板  硬盘  内存  显卡  显示器  键盘鼠标  声卡音箱  打印机  机箱电源  BIOS  网卡  C#  Java  Delphi  vs.net2005
  当前位置:> 程序开发 > Shell
050913:awk中几个内置变量的man说明,感觉英文记得牢点。
作者:未知 时间:2005-09-13 23:27 出处:Blog.ChinaUnix.net 责编:chinaitpower
              摘要:050913:awk中几个内置变量的man说明,感觉英文记得牢点。
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.

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.

关闭本页
 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 chinaitpower.com All rights reserved. www.chinaitpower.com 版权所有