URL:
  <http://savannah.gnu.org/bugs/?23635>

                 Summary: grep -v and -2 options not compatible
                 Project: grep
            Submitted by: None
            Submitted on: Thursday 06/19/2008 at 06:23 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

I often use grep -2 and grep -v
but grep -v -2 dont work

I want to ignore results with -v and ignore 2 lines around the ignored
pattern with -2

my example : 
tail -f /var/log/snort.alert | grep -v -2 ip_adress

 I think this should allow me to ignore 5 lines ( 2 lines around the matching
ignored ip adress )

 I'm not sure if this is a bug report or a feature request, but this could be
useful to many people since no ngu/linux command line seem to do this.






    _______________________________________________________

Reply to this item at:

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

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



Reply via email to