grep 所有多个关键字

标签(空格分隔): Linux


多个关键字 关系

egrep 'CommentManager|getComment' --color catalina.log.2017-03-15
grep -E 'CommentManager|getComment' --color catalina.log.2017-03-15
grep -e 'CommentManager' -e 'getComment' --color catalina.log.2017-03-15 
awk '/CommentManager|getComment/'  catalina.log.2017-03-15 

多个关键字关系

grep  'CommentManager' catalina.log.2017-03-15 | grep 'getComment' --color
原文地址:https://www.cnblogs.com/boothsun/p/6552490.html