Entries Tagged as 'search'

Monday, February 9th, 2009

GEEK: prune directories, files from find output

Sometimes you want to exclude a directory and/or files from a search. This alias: cfind=’find . \( -type d -name .svn -prune -o -path ./stock-data/tests/data -prune \) -o \( -type f \! -name “*.csv” -print0 \) | xargs -0 grep’ …means: “Recursively loop through all of the files and directories in the current directory and [...]