[root@linux-node1 ~]# cat 13_1.txt aa 11 111111 11bbcc aa11bb [root@linux-node1 ~]# grep -w "11" 13_1.txt ##精确匹配11,并不会匹配到其他包含111111或11bbcc或aa11bb 11 [root@linux-node1 ~]# grep -w "aa" 13_1.txt aa