Greg Wooledge <[email protected]> wrote:
> On Fri, Feb 27, 2026 at 09:35:25 +0000, Chris Green wrote:
> > 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?
> 
> https://mywiki.wooledge.org/BashFAQ/079
> 
> I believe you want the section entitled
> 
>     foo AND bar in the same file, not necessarily on the same line
> 
> although it's hard to be sure, because your problem description is
> somewhat unclear.  (What is the format of a "journal entry"?)

You have understood what I wanted.  You've also shown me that,
probably, rolling my own bash script to do it is the way to
go. The solutions in the bashFAQ thread do much as I was suggesting
when I asked the question.

Thanks.

-- 
Chris Green
·

Reply via email to