bug-grep
[Top][All Lists]
Advanced

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

bug#26576: -v when used with -C


From: 積丹尼 Dan Jacobson
Subject: bug#26576: -v when used with -C
Date: Thu, 20 Apr 2017 23:37:03 +0800

I want to do
$ cat file|some_program
but I must must exclude the UGLY line and its two neighbors.

OK I have found the UGLY line, and its two neighbors
$ grep -C 2 UGLY file
bla
bla
UGLY
bla
bla

but I have no way to exclude them before piping to some_program.





reply via email to

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