[CentOS] grep pattern x, but not pattern y on the same line
Robert Heller
heller at deepsoft.comFri Oct 15 10:24:17 UTC 2010
- Previous message: [CentOS] grep pattern x, but not pattern y on the same line
- Next message: [CentOS] Trying to get xen to boot off of an iso or a sysresc image so I can expand a filesystem to the extent of the LVM's free space.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At Fri, 15 Oct 2010 12:11:17 +0200 CentOS mailing list <centos at 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 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. find . | xargs grep 'mailx'|grep -v sven.aluoor at ubs.com > > cheers Sven > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > > -- Robert Heller -- 978-544-6933 / heller at deepsoft.com Deepwoods Software -- http://www.deepsoft.com/ () ascii ribbon campaign -- against html e-mail /\ www.asciiribbon.org -- against proprietary attachments
- Previous message: [CentOS] grep pattern x, but not pattern y on the same line
- Next message: [CentOS] Trying to get xen to boot off of an iso or a sysresc image so I can expand a filesystem to the extent of the LVM's free space.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list