I know and use grep extensively but this requirement doesn't quite fit grep.
I want to search lots of diary/journal entries (which are just plain text files) for entries which have two or more specified strings in them. E.g. I'm looking for journal entries which have, say, the words 'green', 'water' and 'deep' in them. Ideally the strings searched for could be Regular Expressions (though simple command line type wild cards would suffice). Is there a tool out there that can do this? If not I can probably produce a bash script to do it using grep, i.e. use grep to get a list of files with the first word, grep that list of files for the second word, and so on. However if there's a ready made tool for doing it I'd like to know about it. -- Chris Green ·

