干干净净的grep

用grep -rn "xxxx" ./   搜索。 有时候出现大量的 错误信息

主要有

1。Is a directory

2。no such file or directory

前者表示搜索子目录,后者表示文件找不到

解决办法前者-r后者-s

-r 参数:强制搜索子目录  --directories=recurse

-s参数:抑制出错信息 suppress error messages

 

posted @ 2020-02-24 17:56  shinedream  阅读(129)  评论(0编辑  收藏  举报