一、
grep搜索時過濾指定目錄
grep -rn --exclude-dir=".svn" test *
grep -rn --exclude-dir=\.svn test *
可以直接在bashrc文件中添加下面一句,執行source ~/.bashrc或者. ~/.bashrc,使修改起作用。
export GREP_OPTIONS="--exclude-dir=\.svn"
一、
grep搜索時過濾指定目錄
grep -rn --exclude-dir=".svn" test *
grep -rn --exclude-dir=\.svn test *
可以直接在bashrc文件中添加下面一句,執行source ~/.bashrc或者. ~/.bashrc,使修改起作用。
export GREP_OPTIONS="--exclude-dir=\.svn"