首页 > 其他 > 详细

rhcsa——正则表达式

时间:2020-05-09 22:13:08      阅读:46      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

grep sbin /etc/passwd 抓取passwd下带sbin的
grep -v sbin /etc/passwd 反抓,不带sbin的
grep hello test 抓取test中的hello
grep -i hello test 忽略大小写,抓取hello
grep ^# test 抓取以#为开头的内容

rhcsa——正则表达式

原文:https://www.cnblogs.com/eafrh/p/12860126.html

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