I want to find files that have \"abc\" AND \"efg\" in that order, and those two strings are on different lines in that file. Eg: a file with content:
blah bl
This should work:
cat FILE | egrep 'abc|efg'
If there is more than one match you can filter out using grep -v