Show only the matches with sed.
使用sed仅显示匹配项。
Sed is the stream editor.
Sed是一个流编辑器。
So, why use it instead of sed?
那么,为什么要使用tr,而不使用sed呢?
Listing 20. Beginning sed scripts.
清单20 . sed脚本。
Sed scripts may also be stored in files.
sed脚本也可以存储到文件中。
Complex search and replace with sed.
使用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 完成此工作。
You will also learn how to use the stream editor sed.
您还将了解到如何使用流编辑器sed。
Why not take some time to install GNU sed 3.02.80 now?
现在为什么不花些时间安装GNU sed 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发行版都有(或至少应该有)GNU sed。
Let's now do that with a sed script stored in a file.
现在让我们使用存储在文件中的sed脚本来实现相同的操作。
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。
The second thing to notice is that sed is line-oriented.
第二件要注意的事是 sed 是面向行的。
Start txt2regex and specify regexps for grep, sed, and emacs.
启动txt2regex并指定构建用于grep、sed和Emacs的regexp。
GNU sed will accept sed — version to display the version.
GNU sed将接受sed——version来显示该版本。
You can see the basic format of a sed command in Listing 7.
在清单7中,您可以看到sed命令的基本格式。
The SED has achieved positive results since it was launched.
两国战略与经济对话机制启动以来取得积极成果。
Using the editor sed to script complex changes to text files.
使用编辑器sed编写脚本,对文本文件做出复杂的修改。
You can also write a short sed program to output matches in color.
还可以编写简短的 sed 程序来以颜色标记输出内容。
After getting GNU sed 3.02.80 installed, I was finally ready to go.
安装完gnu sed 3.02.80之后,我就完全准备好了。
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 成功完成了预期任务。