I want to find all files that have both patern1 and patern2 words (not those that contain only one of them or none of them).
I used the following but it includes those that also have only one of the two words:
grep -r "patern1|patern2" /path/to/directory