grep的一点用法(1)

  grep -v 可以排除不要的目标

例  cat a.txt | grep  aa  | grep -v  bb  

筛选a文本中含有aa但不含bb的内容

原文地址:https://www.cnblogs.com/cnqfz/p/13691725.html