How do I find out the files in the current directory which do not contain the word foo (using grep)?
foo
grep
You will actually need:
find . -not -ipath '.*svn*' -exec grep -H -E -o -c "foo" {} \; | grep :0\$