linux – 在tail -f中,如何过滤掉具有某些关键字的内容?

linux – 在tail -f中,如何过滤掉具有某些关键字的内容?

我想尾随我的日志.但是,我想过滤掉所有包含这些词语的内容: “ELB”,“Pingdom”,“健康” 我不知道使用awk而不是grep,但这对我有用: tail -f file.log | grep -Ev (ELB|Pingdom|Health) 编辑:正如dmourati和Caleb所指出的那样,为方便起见,您也可以使用egr

联系我们

联系我们

0577-28828765

在线咨询: QQ交谈

邮箱: xwei067@foxmail.com

工作时间:周一至周五,9:00-17:30,节假日休息

返回顶部