What is Nostr?
Tim Chase /
npub1n50…cr3d
2024-11-04 00:58:08

Tim Chase on Nostr: I often find myself consecutively filtering with multiple chained greps $ grep a ...

I often find myself consecutively filtering with multiple chained greps

$ grep a in.txt | grep b | grep -v c | grep d

and found it was often easier, cleaner, and faster to do in a single awk expression

$ awk '/a/ && /b/ && !/c/ && /d/' in.txt

Just in case someone else finds it useful.
Author Public Key
npub1n507nu5u0g0yy3jv8xzlwxzluyft9ps5p5etskrd6dxxlykkm8hqtucr3d