grep pattern x, but not pattern y on the same line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxx on the same line.

Every file which contains "mailx", but not the string
sven.aluoor@xxxxxxx in the same line.

cheers Sven
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux