negative context for grep?

glen herrmannsfeldt <[email protected]>
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
I wanted to see the third line after the line that matched,

grep -B -2 -A 3 important file

It seems that negative values aren't allowed.

I wonder if others think this would be useful, and not
so hard to add.

-- glen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.