This should work:
find . -path "*.svn" -prune -o -exec grep -ie "something" {} \;
The -prune command is saying to ignore that path. We use the * so as you recurse through the tree with find, we still omit the .svn dir. Note that you do not need to recurse through each directory with grep in this case.
Last edited by hradtke; 06-02-2007 at 11:00 AM.
|