awk 只 print 没有匹配到正则规则的行
来源:https://stackoverflow.com/questions/44891541/awk-print-only-lines-not-matching-the-defined-pattern
在正则前面加感叹号 !
cat file.txt | awk '!/pattern/{print $0}'
来源:https://stackoverflow.com/questions/44891541/awk-print-only-lines-not-matching-the-defined-pattern
在正则前面加感叹号 !
cat file.txt | awk '!/pattern/{print $0}'