I know and use grep extensively but this requirement doesn't quite fitThere is very simple way. You don't need any scripting or programming knowledge. See below: (file size is too big to send email with attach) <https://gitlab.com/soyeomul/Gnus/-/raw/d1c1a821330fec849c74813dab9c3d069be5940f/stuff/grep-gmail.png>
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.
[-- text/plain, size 1.2K, charset utf-8, 35 lines, encoding quoted-printable --]
Hellow Chris,
Chris Green <cl@isbd.net> writes:
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.
There is very simple way. You don't need any scripting or programming knowledge. See below: (file size is too big to send email with attach) <https://gitlab.com/soyeomul/Gnus/-/raw/d1c1a821330fec849c74813dab9c3d069be5940f/stuff/grep-gmail.png>
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?
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"?)
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?
On Fri 27 Feb 2026 at 04:50:42 (-0500), 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.
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.
| Sysop: | Jacob Catayoc |
|---|---|
| Location: | Pasay City, Metro Manila, Philippines |
| Users: | 5 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 119:49:39 |
| Calls: | 125 |
| Calls today: | 125 |
| Files: | 489 |
| D/L today: |
859 files (365M bytes) |
| Messages: | 76,568 |
| Posted today: | 26 |