码迷,mamicode.com
首页 > 其他好文 > 详细

grep egrep命令

时间:2015-08-19 17:40:50      阅读:97      评论:0      收藏:0      [点我收藏+]

标签:grep   命令   egrep   

需求查询 包含‘555 777‘行的内容,使用一条命令


# cat abc.txt 

123

444

555

666

777


# egrep ‘(777|555)‘ abc.txt 

555

777


# grep -E ‘(777|555)‘ abc.txt 

555

777


本文出自 “智能化未来_XFICC” 博客,请务必保留此出处http://xficc.blog.51cto.com/1189288/1685866

grep egrep命令

标签:grep   命令   egrep   

原文地址:http://xficc.blog.51cto.com/1189288/1685866

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!