psychoschlumpf is correct, but it only works if you have the latest version of
grep. Earlier versions do not have the
--exclude-dir option. However, if you have a very large codebase, double-
grep-ing can take forever. Drop this in your
.bashrc for a portable
alias sgrep='find . -path "*/.svn" -prune -o -print0 | xargs -0 grep'
Now you can do this:
... and get expected results.
Of course, if you're an insane person like me who just has to use the same
.bashrc everywhere, you could spend 4 hours writing an overcomplicated bash function to put there instead. Or, you could just wait for an insane person like me to post it online: