Linux日志搜索 grep

Linux日志搜索 grep

1.关键字“或”的搜索, -E 不能少。grep -E "word1|word2|word3" file.txt满足任意条件(word1、word2和word3之一)将匹配。2.关键字“且”的搜索grep word

5小时前00