How do I find out the files in the current directory which do not contain the word foo (using grep)?
foo
grep
The following command gives me all the files that do not contain the pattern foo:
find . -not -ipath '.*svn*' -exec grep -H -E -o -c "foo" {} \; | grep 0