ITPub博客

首页 > Linux操作系统 > Linux操作系统 > GNU grep's new features

GNU grep's new features

原创 Linux操作系统 作者:lfree 时间:2006-06-05 00:00:00 0 删除 编辑

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.


来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/267265/viewspace-82859/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 一些格言
请登录后发表评论 登录
全部评论
熟悉oracle相关技术,擅长sql优化,rman备份与恢复,熟悉linux shell编程。

注册时间:2008-01-03

  • 博文量
    2485
  • 访问量
    6292503