[CentOS] grep pattern x, but not pattern y on the same line

Sven Aluoor aluoor at gmail.com
Fri Oct 15 10:11:17 UTC 2010

Hi folks

I have the command "find . | xargs grep 'mailx'", to search all files
with "mailx" in contents. I wish to add a second condition that NOT
contains string sven.aluoor at ubs.com on the same line.

Every file which contains "mailx", but not the string
sven.aluoor at ubs.com in the same line.

cheers Sven

More information about the CentOS mailing list