bug-grep
[Top][All Lists]
Advanced

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

[bug #28906] grep -Ax -q should print context but not matching line


From: Paolo Bonzini
Subject: [bug #28906] grep -Ax -q should print context but not matching line
Date: Fri, 19 Feb 2010 13:28:52 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.6) Gecko/20100107 Fedora/3.5.6-1.fc12 Firefox/3.5.6

Follow-up Comment #1, bug #28906 (project grep):

I don't think it would be adequate to shoehorn this into -q.  You can do this
with

grep -A1 foo | grep -v foo

Note that the output would be

quick
---
lazy

Another related feature that would make sense is suppression of the group
separator, for which I'll open a separate bug.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28906>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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