[root@linux-node1 ~]# cat 13_1.txt #测试文件 aa 11 11bbcc aa11bb syaving [root@linux-node1 ~]# grep -n 'syaving' 13_1.txt ##显示所有匹配syaving的行和行号 5:syaving