On 2/27/26 10:35 AM, Chris Green wrote:
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).

This is to broad of a question, give us an example of what you want.

$ awk '/green/ && '/water/ && /deep/'
$ awk '/green/ || /water/ || /deep/'

Like the first or the second awk command but recursive?
With the informations provided, you could do the above in grep and the recursive flag.


Is there a tool out there that can do this?


Perl, Python, JavaScript, Awk, Grep..

To me, the issue here is not the tool but your lack of experience using RE!

--
John Doe

Reply via email to