PLEX86  x86- Virtual Machine (VM) Program
 Plex86  |  CVS  |  Mailing List  |  Download  |  Linux  |  Newsgroups

Filter piped stream with sed or grep 1820


Your Ad Here

Your Ad Here

You don't have to hope I have permission, I do. The organization I work for has a strict policy about privacy on their computers and networks. Essentially it states that "the data on our computers or going over our network is ours and you have no expectation of privacy." Our employees have to sign a form waiving their right to privacy. Kind of freaky isn't it?

Thanks for the better understanding of sed, I knew it could do multiple choice or anything that like, but I knew it could interpret regular expressions. I figured I could create an expression something to the effect of "thisIP OR thisIP or thisIP OR thisIP" but I was mistaken.

Filter piped stream with sed or grep 1821
On 7 Jul 2006, in the Usenet newsgroup comp.os.linux.misc, in article OK - you might be surprised of...

I have tried cascading grep & sed commands with no success for example: urlsnarf -i eth0 -n grep -v 192.168.1.5 grep -v 192.168.1.6 grep -v 192.168.1.10 grep -v 192.168.1.11 would not output anything even though there would be traffic from other IP. However if you removed the last two grep commands traffic would be displayed. That was very odd, and I can't say I understand why that would happen, but I have created a work around for us. Baiscally I just have urlsnarf just output everythign to a text file then every hour I have a script parse the text file and remove all entries containing the IPs I don't need to filter.

I noticed egrep, but for some reason never paid any attention to it. It looks like it will work just great for me using a command like this: urlsnarf -i eth0 -n egrep '(192.168.1.5 -192.168.1.6 -192.168.1.10 -192.168.1.11 -)' -v I currently have it running as well so I'll compare the logs I get.

Thanks for your input! -Curt

Moe Trin



Your Ad Here

List | Previous | Next

Filter piped stream with sed or grep 1821

Linux groups from Newsgroups

The #1 Usenet Provider on the Internet

Is this a memory problem