bug#52851: git grep feature: boolean logic

2021-12-28 Thread Kevin Connor Arpe
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

bug#52851: git grep feature: boolean logic

2021-12-28 Thread arnold
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,