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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned 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.

Anonymous

 

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 click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup