How do I find out the files in the current directory which do not contain the word foo (using grep)?
foo
grep
I had good luck with
grep -H -E -o -c "foo" */*/*.ext | grep ext:0
My attempts with grep -v just gave me all the lines without "foo".
grep -v