Re: Basic Grep Question

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

 



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

# grep -v "cat\|grey" /tmp/file

# grep -Ev "cat|grey" /tmp/file

> Many Thanks
Cheers!
-- 
Rodolfo Alcazar
Responsable red y datos

Deutsche Gesellschaft für
Technische Zusammenarbeit (GTZ) GmbH

Programa de Apoyo a la Gestión Pública Descentralizada y 
Lucha Contra La Pobreza - PADEP
Av. Sánchez Lima 2226
La Paz, Bolivia

Telf.: +591 22417628 (121)
Fax: +591 22417628 (126)
Web: www.padep.org.bo
Email: rodolfo.alcazar@xxxxxxxxxxxx



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

  Powered by Linux