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

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

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.



No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




No changes have been made to this item

Back to the top

Powered by Savane 3.7