Show only the matches with sed.
使用sed仅显示匹配项。
Listing 20. Beginning sed scripts.
清单20.sed脚本。
Sed scripts may also be stored in files.
sed脚本也可以存储到文件中。
Listing 2. Matched strings marked in sed.
清单2.sed中标记的匹配字符串。
Listing 20 shows three simple sed scripts.
清单20展示了三个简单的sed脚本。
This will cause sed to delete any matching lines.
这将导致sed删除任何匹配的行。
Uncompressing sed into a temporary directory.
将sed解压缩到临时目录。
There are ways to do this with grep, sed, and perl.
可以通过使用 grep、sed和 perl完成此工作。
Why not take some time to install GNU sed 3.02.80 now?
现在为什么不花些时间安装GNUsed 3.02.80呢?
You can do similar things in sed using the command.
在sed中,可以使用命令。
Every Linux distribution has GNU sed, or at least should.
每一个Linux发行版都有(或至少应该有)GNUsed。
A set of sed commands is usually called a sed script.
sed命令集常常被称为sed脚本。
In this example, we called sed with one editing command, 'd.
在该例中,用一个编辑命令'd '调用sed。
Start txt2regex and specify regexps for grep, sed, and emacs.
启动txt2regex并指定构建用于grep、sed和Emacs的regexp。
The SED has achieved positive results since it was launched.
两国战略与经济对话机制启动以来取得积极成果。
Using the editor sed to script complex changes to text files.
使用编辑器sed编写脚本,对文本文件做出复杂的修改。
The output of this is fed into a sed script that only prints numbers.
这个输出被送入只允许数字的sed脚本。
First, download the source tarball (sed-3.02.tar.gz) (see Resources).
首先,下载源代码tar压缩包(sed - 3.02 . tar . gz)(请参阅参考资料)。
Sed is line-based, so the commands are performed on each line in order.
sed是基于行的,因此按顺序对每一行执行命令。
You'll notice that sed performs its desired task with flying colors.
您将注意到,sed 成功完成了预期任务。
You can also alter text from the command line using patterns, replace, and sed.
还可以使用模式、替换和sed从命令行更改文本。
You can also do regexp highlighting in sed, the stream editor. The sed command.
还可以在sed(流编辑器,stream editor)中进行regexp突出显示。
This is simply a special keyword that tells sed to match either a TAB or a space.
这只是一个特殊的关键字,它告诉sed与TAB或空格匹配。
In addition to operating on individual lines, sed can operate on a range of lines.
除了操作单独的行外,sed还可以操作一个行范围。
The SED helps the two countries reinforce communications and mutual understanding.
美中战略与经济对话有助于双方加强彼此沟通和相互了解。
The 'd' command didn't simply tell sed to delete all incoming data in one fell swoop.
d'命令不是简单地告诉sed 一下子删除所有输入数据。
This article helps you better understand the regular expressions used by both grep and sed.
本文将帮助您更好地理解grep和sed使用的正则表达式。
Version 4 of sed contains documentation in info format and includes many excellent examples.
sed的第四版包含info格式的文档,并附带了许多出色的示例。
Some versions of sed have an -i option, which specifies that the input file should be edited.
某些版本的sed有一个-i选项,此选项指定应该编辑的输入文件。
And, sed writes its results to standard output (stdout); it doesn't modify any input files.
然后,sed将其结果写入标准输出(stdout),它不修改任何输入文件。
应用推荐