如何使用grep排除行

$ grep -v [排除字符串] [文件]

Command
grep
Description
选择不匹配指定模式的行。对于过滤日志中的噪音非常有用。
Deep Dive
-v 代表 inVert match(反向匹配)。 示例:`grep 'ERROR' log.txt | grep -v 'MinorWarning'`