摘要:
一、打印除匹配行之外的其它行,使用grep -v 打印行首不包含$或#的注释行:cat file| grep -v ^$ | grep -v ^# 打印某文本文件行首不包含$或#的注释行:egrep -v "^#|^$" nginx.conf.default 知识点: 1、行首 ^ 2、正则表达式“ 阅读全文
posted @ 2018-03-05 10:19
破霜风
阅读(173)
评论(0)
推荐(0)
|
摘要:
一、打印除匹配行之外的其它行,使用grep -v 打印行首不包含$或#的注释行:cat file| grep -v ^$ | grep -v ^# 打印某文本文件行首不包含$或#的注释行:egrep -v "^#|^$" nginx.conf.default 知识点: 1、行首 ^ 2、正则表达式“ 阅读全文
posted @ 2018-03-05 10:19
破霜风
阅读(173)
评论(0)
推荐(0)
|