I have an interesting requirement I'm not sure how to solve -
searching a large directory (150,000+ files) for two search terms,
returning only the filename as the result.
A positive match equals both search terms in the same file, regardless
of how many times each term appears in that file. The key is that
both are there.
I've tried cat * |grep <term1> |grep <term2> which gave me the "too
many arguments" error due to directory size. I was wondering if
anyone had a suggestion on a command I could use to do this search?