buggrep - Bugs: bug #23635, grep -v and -2 options not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #23635: grep -v and -2 options not compatible

Submitter:  None
Submitted:  Thu 19 Jun 2008 06:23:54 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

Thu 19 Jun 2008 06:23:54 AM UTC, original submission:  

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.


Anonymous

 

Attached Files

This item currently has no attached files.

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

No changes have been made to this item

Back to the top

Powered by Savane 3.16-598c.
Corresponding source code