1 export GREPF_FILES="$(cygpath 'E:\Developer\tfs\Earth\DEV\Product\Config\zh-CN\Modules\WellInfoModule') $(cygpath 'E:\Developer\tfs\Earth\DEV\Product\Config\zh-CN\GeneralLayer\2D\2DComponents\WellInfo2D')" 2 3 function grepf() { 4 if [ $# -ne 1 ]; then 5 cat <<EOF 6 Usage: 7 grepf PATTERN 8 9 Variable: 10 GREPF_FILES grep file 11 12 Example: 13 grepf \"2005\" 14 GREPF_FILES=. grepf \"2005\" 15 EOF 16 return 17 fi 18 grep -irn $1 $GREPF_FILES 19 }