grep不查寻隐藏文件的方法

grep不查找隐藏文件的方法
使用以下命令字符串test会查找所有的文件,包含".svn"隐藏文件夹下的文件也会查找。
grep -nr "test" *

请问如何才能不查找隐藏文件夹下的内容呢?多谢


–exclude-dir=DIR
Exclude directories matching the pattern DIR from recursive searches.


再-v一下,把^.的过滤掉


man grep for help.

grep不查寻隐藏文件的方法

相关文章:

你感兴趣的文章:

标签云: