Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

Rob Sanheim http://www.robsanheim.com

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

grep for a file, excluding svn metadata directories and files

Grep for something, excluding the annoying svn metadata (.svn**)
The find piece could also be used for more general tasks -- just remove the pipe and take a look at the output to see if it will work for you.
I tried (and failed) to use the find to a path preserving copy from within a subdirectory in a checkout...though there must be a way.

   1  
   2  find . -path '*/.svn' -prune -o -type f -print | xargs -e grep -I -n -e PATTERN
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS