Em Sex, 2001-12-14 �s 19:21, Cl�udio Sampaio (Patola) escreveu:
>       A express�o CORRETA fica assim:

>       grep -v '(joao.*maria|maria.*joao)' arquivo

>       OBS.: Estou tirando *todas* as linhas que tenham
> joao e maria na mesma linha, nesse exemplo. Se fosse pra tirar
> tanto as que tivessem joao quanto as que tivessem maria,
> ficaria assim:

>       grep -v '(joao|maria)' arquivo

        Falei tanto do sujeito mas cometi o mesmo erro...

        Onde se lia 'grep', leia-se agora 'egrep' (extended grep)

        []s,
-- 
        Patola (Cl�udio Sampaio) - Solvo S/A
        IBM Certified Advanced Technical Expert and Systems Developer
        SAIR GNU/Linux Certified Systems Administrator
        PGP/GPG Public Key Available Upon Request
        Try http://www.automatos.com - The Automatic MSP
        Unix sex: unzip; strip; touch; finger; mount; fsck; more; yes; umount;
sleep 
--
 /"\
 \ / ASCII RIBBON CAMPAIGN - NO HTML EMAIL!
  X  PLEASE QUOTE ONLY RELEVANT PARTS OF THIS MESSAGE.
 / \ DON'T QUOTE THIS SIGNATURE! / N�O CITE ESTA ASSINATURA!

Attachment: msg36742/pgp00000.pgp
Description: PGP signature

Responder a