同时匹配ABC 和 abc: sed -n '/ABC/{/abc/p}' awk '/ABC/&&/abc/{ print $0 }' grep -E '(ABC.*abc|abc.*ABC)'
匹配ABC 或 abc: sed -n '//(ABC/|abc/)/p' awk '/ABC/||/abc/{ print $0 }' grep -E '(ABC|abc)' 或 egrep 'ABC|abc'
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/2312.html