Re: Search for two words in a File

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

 



On 4/26/06, Paul Howarth <paul@xxxxxxxxxxxx> wrote:
> Kaushal Shriyan wrote:
> > Hi
> >
> > I have a query For example I have a file by the name test and its contents
> > are
> >
> > deep
> > redhat
> > html
> > php
> >
> > I know if I give grep deep test it will return deep, Now my query is
> > to search for two words For example deep +  html I mean both words at
> > a Time
> >
> > How do I do it
>
> $ grep -E 'deep|html' test
>
> Paul.
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Thanks Paul


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux