I am using a command like this to find files with the word 'term' in them:
grep -l term *
But I now want to be able to find files which have two different words in them (let's call them termA and termB) - not necessarily on the same line. I want to find files with both terms in, not just files that have either term.
Now I could write a cumbersome bash script for this, but does grep, egrep, awk, sed or anything else have a tool that can help me?
Thanks in advance.