鉴于grep命令中所有的选项egrep都能够使用(egrep更加强大),为方便起见我将使用egrep命令为大家演示: 例一:显示出文件/etc/passwd含有root的行 例三:显示出/etc/passwd中有多少..
基于4个网页-相关网页
linux egrep 命令参数及用法详解
You had used regexps for egrep, sed, and perl; now try building it for plain grep.
前面已经使用了适用于egrep、sed和perl的regexp,现在我们将尝试构建适用于普通grep的regexp。
Besides the capacity to search for multiple objects, egrep offers the ability to search for repetitions and groups.
除了搜索多个目标的功能之外,egrep还提供了重复搜索和分组搜索的功能。
Look for a few processes running with couchdb in their path by piping the ps output to egrep. You should see something along the lines of the output shown in Listing 1.
通过将ps输出传递给egrep,查看在路径中使用couchdb的进程。
应用推荐