Re: Basic Grep Question

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

 



How do,

On Tue, 2007-03-13 at 15:42 +0000, Dan Track wrote:
> Hi
> 
> Could someone please tell me how I can grep for two or more different
> words in one command instead of piping them through.
> 
> e.g I don't want to do
> 
> cat /tmp/file | grep -v cat | grep -v grey
> 
> I'd like to run that from one grep command.

#egrep 'cat|grey' /tmp/file works for me.

> Many Thanks
> Dan

taharka

Lexington, Kentucky U.S.A.


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

  Powered by Linux