I did a search and the one decent thread I found didn't have any responses.
I'm trying to figure out a way to search a text file for multiple words, not necessarily in sequential order. Right now I'm using grep which is good for phrases or single words, but not multiple words in random order. Basically, if the user searches for blue and red, it's returning files that do not have both within.
Any suggestions on where I can go from here? Only thing I could really think of was some kind of loop, grepping for each word. Thought there might be something simpler. Thanks.