鉴于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。
Egrep is a more powerful version of grep that allows you to search for more than one object at a time.
egrep是grep的一个功能更加强大的版本,它让我们可以一次搜索多个对象。
Besides the capacity to search for multiple objects, egrep offers the ability to search for repetitions and groups.
除了搜索多个目标的功能之外,egrep还提供了重复搜索和分组搜索的功能。
应用推荐