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

Re: sed - Problem



Am 2005-08-31 11:23:33, schrieb Christian Frommeyer:

> Also wenn nichts gegen mehrere Ausdrücke spricht probier doch mal:
> 
> 's/.*@@([^@]*)@@.*/\1/g'
> 's/\s*+/00/'
> 's/[^0-9]//g'
> 
> also z.B. mit
> 
> sed -r -e 's/.*@@([^@]*)@@.*/\1/g' -e 's/\s*+/00/' -e 's/[^0-9]//g'

Das ist aber nicht gut...
Besser:

sed -r -e 's/.*@@([^@]*)@@.*/\1/g;s/\s*+/00/;s/[^0-9]//g'

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: