Hello,
Recently, I was stumped with a difficult grep problem: I needed to filter
files containing more than one regex (think: logical-and). I didn't know
how to do this using only a single invocation of GNU grep. (Please correct
me if I am wrong.)
A bunch of Googling led me to discover that git
Hi.
You may want a different tool:
awk '/pattern1/ && /pattern2/' ...
awk '/pattern1/ || /pattern2/' ...
awk '/pattern1/ && !/pattern2/' ...
And so on.
Seems much easier than stuffing boolean logic into grep.
Just a thought,
Arnold
Kevin Connor Arpe wrote:
> Hello,