[关闭]
@boothsun 2017-03-15T11:50:08.000000Z 字数 345 阅读 1672

grep 所有多个关键字

Linux


多个关键字 关系

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

多个关键字关系

  1. grep 'CommentManager' catalina.log.2017-03-15 | grep 'getComment' --color
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注