I used cat file | grep -v "pat1" | grep -v "pat2" | ... | grep -v "patN"
to drop lines with any of a group of patterns. It looks awkward. Is there a better (concise) way to do that?
Read more here: https://stackoverflow.com/questions/66345207/output-lines-without-multiple-patterns
Content Attribution
This content was originally published by Lee at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.