随笔分类 -  grep,egrep,fgrep

统计rpm安装包---egrep和sed,rev
摘要:ls|egrep o "[^.]+.rpm$" |sort |uniq c ls |sed rn "s/(. )(\.rpm$)/\1/p"|sed r "s/. .\ 阅读全文
posted @ 2018-08-06 12:25 圆缘 阅读(309) 评论(0) 推荐(0) 编辑
egrep= grep -E
摘要:扩展正则表达式:egrep[OPTIONS] PATTERN [FILE...] 参考grep:https://www.cnblogs.com/lqynkdcwy/category/1249698.html 阅读全文
posted @ 2018-07-13 15:27 圆缘 阅读(361) 评论(0) 推荐(0) 编辑
grep:文本搜索工具
摘要:grep: Global search REgular expression and Print out the line 作用:文本搜索工具,根据用户指定的“模式”对目标文本逐行进行匹配检查;打印匹配到的行 模式:由正则表达式字符及文本字符所编写的过滤条件 grep [OPTIONS] PATTE 阅读全文
posted @ 2018-07-08 15:30 圆缘 阅读(312) 评论(0) 推荐(0) 编辑


返顶部