I'm using the following command in my web application to find all files in the current directory that contain the string foo
(leaving out svn directories).
find . -not -ipath '.*svn*' -exec grep -H -E -o "foo" {} \; > grep_results.txt
How do I find out the files that doesn't contain the word foo
?