help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

negative context for grep?


From: glen herrmannsfeldt
Subject: negative context for grep?
Date: Thu, 29 Mar 2007 14:52:27 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]