grep精确查找

精确查找只包含“a”的行

grep -w "a" 1.txt

精确排除查找只包含“a”的行

grep -wv "a" 1.txt
原文地址:https://www.cnblogs.com/soymilk2019/p/12781775.html