Basic Grep Question
Rodolfo Alcazar
rodolfo.alcazar at padep.org.bo
Tue Mar 13 16:27:33 UTC 2007
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 at padep.org.bo
More information about the fedora-list
mailing list