【LinuxShell】grep用法详解

1、 过滤空行

grep -v ^$

2、精确匹配

grep -w xxx

加了这个参数之后查找abc时不会匹配abcd。

posted @ 2019-01-02 10:40  恩赐解脱ゞ  阅读(339)  评论(0编辑  收藏  举报