linux grep的用法
[[email protected] ~]# cat /home/ceshis.txt
b124230
b034325
a081016
m7187998
m7282064
a022021
a061048
m9324822
b103303
a013386
b044525
m8987131
B081016
M45678
B103303
BADc2345 [[email protected] ~]# cat /home/ceshis.txt | grep b10
b103303
[[email protected] ~]#
他只会输出所在行的字符串
ps:如果动态数据 grep显示会累加
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/1380.html