How do I get rid of “–” line separator when using grep with context lines?

I do this:

 grep ... | grep -v -- "^--$"

But this works too (on many, not all OS’es)!

grep --no-group-separator ...

And it doesn’t spit out that “–” or even a blank line.

Leave a Comment

tech