Sure, awk doesn't have a great name.
的确,awk没有一个动听的名字。
You can use grep, awk, Perl, and other solutions.
您可以使用grep、awk、Perl和其他的解决方案。
See Resources for more details about how to use awk.
有关如何使用awk 的更多详细信息,请参见参考资料。
See Resources for more details about how to use awk.
有关如何使用awk的更多详细信息,请参见参考资料。
Listing 15 shows how to get started with the awk command.
清单15显示了如何开始使用awk命令。
Printing specified fields of text file is a simple awk task.
打印文本文件中的指定字段是一项简单的awk任务。
The awk command can be complex and used in a wide variety of situations.
awk命令可以很复杂并应用于广泛的情景中。
Next, awk reduces the output to the process ID, which you feed into xargs.
接下来,awk只显示输出结果中的进程ID,并将它传递给xargs。
Another nice thing about awk is its full complement of mathematical operators.
Awk的另一个优点是它拥有全面的数学运算符。
You know how to figure out what version of Cygwin, awk, and other tools you have.
你知道如何了解你的Cygwin、awk和其他工具的版本。
I find it more manageable to have separate awk statements for each condition I want met.
我发现,对于希望满足的每个条件,使用单独的awk语句更便于管理。
Take that line and use awk to print the second field, which is the total memory in the node.
获取那一行并使用awk输出第二个字段,它是节点中的总内存。
You don't have to sed, awk, grep, and perl your way through reams of onstat or snapshot data.
您不必对大量onstat或快照数据进行 sed、awk、grep和perl 操作。
To ignore all records that contain the string 'xnpd', one could use the following awk statement
要忽略包含字符串'xnpd' 的所有记录,可以使用以下 awk 语句
This includes crafting loops and knowing how to parse data using utilities like awk, grep, and sed.
这包括巧妙使用循环和知道如何使用awk、grep和sed等的实用程序解析数据。
By using the NOT operator with awk, you can specify what records should NOT be extracted from the report.
通过在awk语句中使用NOT操作符,可以指定不应该提取哪些记录。
An awk command consists of a pattern and an action composed of one or more statements, as shown in the syntax below.
awk命令包括一个模式和由一条或多条语句构成的操作,语法如下所示。
Probably some standard Unix shell tools like awk, sed, or tr could be used cleverly to get the precise output desired.
也许可以聪明地使用一些标准的Unixshell工具,如awk、sed或者tr,以准确得到所需要的输出。
To explore the awk command more fully, start with the command man awk in addition to the resources mentioned in the Resources.
若要更完整地学习awk命令,请从命令man awk开始,并参阅参考资料部分提供的资源。
This, however, produced a surprising behavior; those functions did not work as expected when the executable being run was the awk utility.
不过,这导致了不可思议的行为;当运行的可执行文件为awk实用工具时,这两个函数不能正常工作。
The awk command always seems to live in the shadows of Perl, but it can be a quick, useful tool for simple command-line-based data manipulation.
awk命令似乎始终处在Perl的阴影下,但它对于简单、基于命令行的数据处理来说是一个快速、实用的工具。
This filtering may well include deleting headers or trailers from the data file; sed and awk are your friends for any text-filtering requirements.
这可能包括删除数据文件中头尾不需要的信息;sed和awk 有助于满足任何文本筛选需求。
After all the lines have been processed, the END block will execute, and awk will print out a final summary, specifying the number of blank lines it found.
在所有行都处理完毕之后,awk执行END代码块,并打印最终的汇总信息,以显示它找到的空白行数。
To get summary information, in other words, the total space used by a specific user, you can use awk to total the information and print out the final value.
要获得摘要信息,换句话说,即某个特定用户所使用的总空间,您可以使用awk对该信息进行总计,并打印出最后的值。
A tool like awk is preferable to grep when you want to match the pattern in only a specific field in the lines of output and not just anywhere in the lines.
当您只希望匹配输出行中特定字段中的模式时,诸如awk等工具要优于grep。
Many other UNIX tools, including interactive editors vi and Emacs, stream editors sed and awk, and all modern programming languages, also support regular expressions.
许多其他UNIX工具,包括交互式编辑器vi和Emacs、流编辑器sed 和awk,以及所有现代编程语言都支持正则表达式。
Listing 4 contains a simple script using sed and awk to compress the output of ausearch down to only the non-duplicated (time omitted) executable and port number fields.
清单4包含了一个简单的脚本,它使用sed和awk将ausearch的输出压缩成只有不重复的(忽略时间)可执行程序和端口号字段。
Of course, you also have the full power of the Linux or UNIX commands such as sed or awk for more complex jobs, but you should also know how to use shell expansions.
当然,您仍然拥有Linux或UNIX命令(如sed或awk)的全部功能来执行更复杂的工作,但是您也应该了解如何使用shell扩展。
As you can see, the rules to build the targets include intermediate steps, too, that use tools, such as sed and awk, to produce header files that are used in later steps.
正如您可以看到的,用于编译目标的规则还包括一些中间步骤,其中使用了一些相关的工具,如sed和awk,以产生在后续的步骤中将要使用的头文件。
In capabilities and programming level, Rexx can be compared most closely to bash plus the GNU text utilities (throwing in grep and sed for good measure); or maybe to awk or Perl.
在实际能力和编程级别上,Rexx最接近于bash加上gnu文件工具(外加grep和sed);或者可能相当于awk或Perl。
应用推荐