|
From: | Paul Eggert |
Subject: | bug#37754: wish for grep --and -eX -eY -eZ (X∩Y∩Z intersection, not X∪Y∪Z union) |
Date: | Thu, 17 Oct 2019 01:27:35 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 |
On 10/16/19 5:19 PM, Trent W. Buck wrote:
I would expect "grep -Fw -e 4GB -e DDR4 --and" to print the same thing as grep -Fw 4GB | grep -Fw DDR4 | grep -Fw -e 4GB -e DDR4 -o
You're right, it's not obvious. :-)It may be better to just pipe greps together, as you do now. That's simple and fast enough for this relatively-uncommon case, and it's portable to all greps.
[Prev in Thread] | Current Thread | [Next in Thread] |