【LinuxShell】grep用法详解

1、 过滤空行

grep -v ^$

2、精确匹配

grep -w xxx

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

原文地址:https://www.cnblogs.com/gaoshaonian/p/10207343.html