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@ubs.com on the same line.
Every file which contains "mailx", but not the string sven.aluoor@ubs.com in the same line.
cheers Sven
At Fri, 15 Oct 2010 12:11:17 +0200 CentOS mailing list centos@centos.org wrote:
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@ubs.com on the same line.
Every file which contains "mailx", but not the string sven.aluoor@ubs.com in the same line.
find . | xargs grep 'mailx'|grep -v sven.aluoor@ubs.com
cheers Sven _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos