linux 正则表达式 元字符

 单词边界

cool  只匹配cool字符串

[root@MongoDB ~]# cat test.txt 
i am mike1
i am mike
i am mike12

匹配有mike字符串的行

[root@MongoDB ~]# grep 'mike' test.txt 
i am mike
原文地址:https://www.cnblogs.com/mingerlcm/p/10932132.html