###刚学shell脚本,写了个grep的脚本,用于搜索。shell
#!/bin/bash export GREP_COLOR='1;32' export GREP_OPTIONS='--color=always' if [[ -n $1 ]]; then grep -ri --binary-files=without-match $1 ./| grep -vn --colour=always '.svn' else echo 'error: please input search items !' fi