grep and AND Operator!
This achieves what an AND operator should have done in grep!
for i in $(grep -l string1 /path/to/files/*)
do
grep -l string2 $i
done
Comments