8.33. Grep-3.4

Grep 软件包包含在文件内容中进行搜索的程序。

估计构建时间: 0.9 SBU
需要硬盘空间: 37 MB

8.33.1. 安装 Grep

准备编译 Grep:

./configure --prefix=/usr --bindir=/bin

编译该软件包:

make

运行以下命令以测试编译结果:

make check

安装该软件包:

make install

8.33.2. Grep 的内容

安装的程序: egrep, fgrep, 以及 grep

简要描述

egrep

打印与扩展正则表达式匹配的行

fgrep

打印与固定字符串匹配的行

grep

打印与基本正则表达式匹配的行