grep匹配含有特定字符串的行

文件內容爲git 1 2 3 4 5 6 root@oldboy test$cat file  1oot 2oot root zoot ztrp 現要匹配出含有"oot"的全部行,總結如下幾種方法,僅供參考。markdown 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 root@oldboy test$grep [0-9,a-z]oot f
相關文章
相關標籤/搜索