grep 命令

grep(global search regular expression(RE) and print out the line,全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来。

命令用法

$ grep [OPTION]... PATTERN [FILE]...

常用可选参数

使用实例

Last updated