Re: Search for two words in a File

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

 



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.


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

  Powered by Linux