Search for two words in a File

Kaushal Shriyan kaushalshriyan at gmail.com
Wed Apr 26 10:01:02 UTC 2006


On 4/26/06, Paul Howarth <paul at city-fan.org> 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 at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

Thanks Paul




More information about the users mailing list