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

GNU grep's new features

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

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博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

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


  • 博文量
  • 访问量