grep 搜索字符串 grep 搜索,怎样排除某些目录?使用 --exclude-dir 选项。 语法:1--exclude-dir=DIR Exclude directories matching the pattern DIR from recursive searches. 单个目录示例-R是表示启用正则1grep -E "http" ./ -R --exclude-dir=.git 多 2015-11-29 Linux_note #Linux #Tools