为了迅速将ERROR和WARN从日志中过滤出来,可以执行如下命令:
grep -E "ERROR|WARN" my_log_file.log
-E, --extended-regexp
Interpret PATTERN as an extended regular expression (see below).
note:
经过试验,-G, -e都不行。
标签:extended,grep,log,WARN,过滤,ERROR,日志 From: https://blog.51cto.com/maray/6510895