1,grep 查找同时满足多个条件 (与) grep 'fail' a.txt | grep 'error' 2,grep 查找满足多个条件中的一个 (或) grep 'fail\|error' a.txt