comparison .bashrc @ 76:84ffa220796a

kill all stderr from ff
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 11 Jun 2010 10:44:06 -0700
parents 3d111401010f
children 7ddb611ba0c1
comparison
equal deleted inserted replaced
75:89a64b0d6146 76:84ffa220796a
86 then 86 then
87 FILENAME='*' # default -- look in all files 87 FILENAME='*' # default -- look in all files
88 else 88 else
89 FILENAME=$2 89 FILENAME=$2
90 fi 90 fi
91 CMD='command find -L $PWD -iname "${FILENAME}" -print0 | xargs -r0 grep -il "$1" | egrep -v "${EXCLUDES}"' 91 CMD='command find -L $PWD -iname "${FILENAME}" -print0 2> /dev/null | xargs -r0 grep -il "$1" 2> /dev/null | egrep -v "${EXCLUDES}" 2> /dev/null'
92 # echo $CMD 92 # echo $CMD
93 eval $CMD 93 eval $CMD
94 94
95 } 95 }
96 96