grep精確匹配--w參數的使用

關於grep的精確匹配的方法file file的內容:grep 483 aa方法 48word 484search 若是 grep '48' file,結果是三行所有都被顯示arc 若是想精確匹配48的那一行 grep -w '48' file  aix 下好用 關於-w的使用:        -w             Does a word search. 這兩種方法試驗了一下很差用grep
相關文章
相關標籤/搜索