3 if [ -z "$seek" ]; then
4 echo This script needs a pattern to look for in the current directory.
5 echo All code files here and in subdirectories will be searched for the
9 #hmmm: might be nice to support multiple directories...
10 # just need to pass them to find as an array maybe?
12 if [ -z "$dir" ]; then
16 #hmmm: we need to encode this useful logic as a list of binary file endings.
17 find "$dir" -type f \( -iname "*" \
39 ! -iname "*.svn-base" \
43 -exec echo "\"{}\"" ';' | xargs grep -li "$seek" | grep -v "^\.[^\/]\|\/\."