###剛學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