bug-grep
[Top][All Lists]
Advanced

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

[bug #23635] grep -v and -2 options not compatible


From: anonymous
Subject: [bug #23635] grep -v and -2 options not compatible
Date: Thu, 19 Jun 2008 06:23:59 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080208 Mandriva/2.0.0.14-3.1mdv2008.0 (2008.0) Firefox/2.0.0.14

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

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