GNU grep's new features

简介: http://www.linux.com/print.pl?sid=06/05/19/1920231grep changes quick reference -Cx prints context lines before and after matches and must have argument x.

http://www.linux.com/print.pl?sid=06/05/19/1920231

grep changes quick reference

-Cx prints context lines before and after matches and must have argument x.

--color outputs matches in color (default red).

-D action specifies an action to take on device files (the default is "read").

--exclude= filespec excludes files matching filespec.

--include= filespec only searches through files matching filespec.

--label= name makes name the new label for stdin.

--line-buffered turns on line buffering.

-m X stops searching input after finding X matched lines.

-o outputs only matched patterns, not entire lines.

-P uses Perl-style regular expressions.

[@more@]
目录
相关文章
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
x86_64-linux-gnu/libgdk-x11-2.0.so: error adding symbols: DSO missing from command line
239 0
|
缓存 算法 Unix
为什么GNU grep如此之快?
这是GNU grep的原作者Mike Haertel 在FreeBSD邮件列表中对 “GNU grep为什么比BSD grep要快” 所做的回答,下面是邮件正文内容:
284 0