erlug
[Top] [All Lists]

Re: [Erlug] sed regex: nessuno tra

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] sed regex: nessuno tra
From: Nando Santagata <nando@xxxxxxxxx>
Date: Thu, 22 Apr 2004 15:46:16 +0200
On Thu, Apr 22, 2004 at 02:44:39PM +0200, Ivan Sergio Borgonovo wrote:
> se volessi matchare tutte le espressioni che non contengono
> pippo o pluto o minnie
> ?
> Questo non funziona
> [^(pippo)|(pluto)|(minnie)]
> sembra equivalente a
> [^pippoplutominnie]

Prova:

nanux:~>cat <<EOF|sed -e 's/pluto\|pippo\|minnie/sarca/' 
pluto
pippo
minnie
no
neanche
EOF


-- 
Rev. Nando Santagata: Telemastica & infornatica
You have reached Ritual Sacrifice. For goats, please press '1' or say 'goats'.
To sacrifice a loved one or pet, press the pound key.
Key fingerprint = 1054 9311 458D 4BAA E97B  F447 7CD4 54B5 0208 F815
finger nandos (at) mail (dot) ipers (dot) net   for my public key

<Prev in Thread] Current Thread [Next in Thread>