首页 > 其他 > 详细

Grep第一课(基本)

时间:2014-09-25 10:07:09      阅读:235      评论:0      收藏:0      [点我收藏+]

man grep

    grep  searches the named input FILEs (or standard input if no files are   named, or if a single hyphen-minus (-) is given as file name) for lines containing  a  match to the given PATTERN.  By default, grep prints thematching lines.


       In  addition,  three  variant  programs  egrep,  fgrep  and  rgrep  areavailable.   egrep  is  the  same  as  grep -E.   fgrep  is the same asgrep -F.  rgrep is the same as grep -r.  Direct  invocation  as  either egrep  or  fgrep  is  deprecated,  but  is provided to allow historical applications that rely on them to run unmodified.

 Examples: ifconfig | grep -i packets

bubuko.com,布布扣



Grep第一课(基本)

原文:http://blog.csdn.net/christprince007/article/details/39546415

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!