awk
- 网络文本处理语言;第二版;第三版;模式扫描和处理语言
-
Awk also provides another special block , called the END block .
另外,awk还提供了另一种称为END的专用代码块。
-
Printing specified fields of text file is a simple awk task .
打印文本文件中的指定字段是一项简单的awk任务。
-
I use AWK a lot for most small programs that I write .
我经常用AWK,主要是编写小程序。
-
For example , did you know you can do network programming with awk ?
例如,您以前可能根本不知道可以使用awk进行网络编程。
-
Sure , awk doesn 't have a great name .
的确,awk没有一个动听的名字。
-
Listing 15 shows how to get started with the awk command .
清单15显示了如何开始使用awk命令。
-
You can use the awk command to quickly total the sales for each month .
您可以使用awk命令来快速获得每个月的销售总额。
-
The awk command can be complex and used in a wide variety of situations .
awk命令可以很复杂并应用于广泛的情景中。
-
You also see how programs are structured and learn AWK 's record and field paradigm .
您还将了解如何组织程序,并学习AWK的记录和字段范例。
-
To ignore all records that contain the string'xnpd ' , one could use the following awk statement
要忽略包含字符串'xnpd'的所有记录,可以使用以下awk语句
-
By default , awk treats each comma-separated value as a different field .
缺省情况下,awk将每个以逗号分隔的值视为不同的字段。
-
For such situations , awk allows you to define a BEGIN block .
对这种情况,awk支持定义BEGIN代码块。
-
This will also bring the report into columns where awk can then be used to extract details .
这会让报告以列的形式呈现,awk可以从这些列中提取信息。
-
Awk tests every record in the specified file ( or files ) for a pattern match .
awk测试指定文件中的每个记录是否符合模式匹配。
-
Awk has its own complement of special variables .
Awk有其自己的特殊变量集合。
-
Take that line and use awk to print the second field , which is the total memory in the node .
获取那一行并使用awk输出第二个字段,它是节点中的总内存。
-
Awk executes this block after all lines in the input file have been processed .
在输入文件的所有行处理完毕之后,awk执行这个代码块。
-
In this tutorial , you use GAWK to learn the various methods of running AWK programs .
在本教程中,您将使用GAWK,以了解各种运行AWK程序的方法。
-
I find it more manageable to have separate awk statements for each condition I want met .
我发现,对于希望满足的每个条件,使用单独的awk语句更便于管理。
-
Normally , awk executes each block of your script 's code once for each input line .
通常,awk会针对每个输入行执行一次每个代码块。
-
This tutorial provides a hands-on introduction to the AWK text-processing language .
本教程为AWK文本处理语言提供了实践性的介绍。
-
You should also be able to write custom AWK programs to perform complex text processing from the UNIX command line .
您还应该能够编写自定义的AWK程序,以使用UNIX命令行执行复杂的文本处理。
-
Awk is geared toward text processing and report generation , yet features many well-designed features that allow for serious programming .
awk适合于文本处理和报表生成,它还有许多精心设计的特性,允许进行多种方式的编程。
-
The tool comes with a postprocessing script that requires a UNIX shell and awk capabilities .
该工具随后处理程序脚本一起提供,该脚本需要UNIXshell和awk功能。
-
As mentioned earlier , this variable allows you to set the character sequence that awk expects to find between fields .
如前所述,这个变量支持设置awk期望在字段中找到的字符序列。
-
Perl 's regular expression heritage comes from shell scripting and the awk / grep tools .
Perl的正则表达式是从shell脚本程序以及awk/grep工具中继承而来的。
-
In awk , when a print command appears by itself , the full contents of the current line are printed .
在Awk中,当print命令单独出现时,将打印当前行的全部内容。
-
By using the NOT operator with awk , you can specify what records should NOT be extracted from the report .
通过在awk语句中使用NOT操作符,可以指定不应该提取哪些记录。
-
In this series of articles , I 'm going to turn you into a proficient awk coder .
在这一系列的文章中,我将使您成为精通awk的编程人员。我承认,awk并没有一个非常好听且又非常“时髦”的名字。
-
An awk command consists of a pattern and an action composed of one or more statements , as shown in the syntax below
awk命令包括一个模式和由一条或多条语句构成的操作,语法如下所示