puoi usare tr per sostituire i caratteri singoli ------------------------------------------------------- $ cat t1 10/10/2013 10:10 # , : , ' , ?, >, <, », *.
$ cat t1 | tr '#' '!' | tr ':' '.' | tr '<' '"' | tr '*' '!' 10/10/2013 10.10 ! , . , ' , ?, >, ", », !. ------------------------------------------------------- non ho capito se devi modificare anche la prima linea... in tal caso: ------------------------------------------------------------------------------------------- $ cat t1 | tr '#' '!' | tr ':' '.' | tr '<' '"' | tr '*' '!' | tr '/' '.' | sed 's|2013|10|' 10.10.10 10.10 ! , . , ' , ?, >, ", », !. --------------------------------------------------------------------------------------------- Il 27/11/13, antispammbox-debian<[email protected]> ha scritto: > > ----- Original Message ----- > From: "MaX" <[email protected]> > To: "Antispammbox-debian" <[email protected]> > Cc: "Alessandro" <[email protected]>; > <[email protected]> > Sent: Tuesday, November 26, 2013 10:26 PM > Subject: Re: Sed: sostituzioni > > > Alessando deve avere confuso il mittente, ma non fa nulla > > antispam, non si capisce ancora... fai questo metti un esempio di > partenza e un esempio di arrivo... tipo: > > Prima: > 10/10/2013 10:10 > > # , : , ' , ?, >, <, », *. > il # con ! : con . < con " * con ! > > Dopo: > > 10.10.10 10.10 > > Posso sostituire anche più caratteri diversi con lo stesso simbolo! > Che sò, il # con ! ed anche < con !. > > > Ciao > > -- ciao, MaX -- Per REVOCARE l'iscrizione alla lista, inviare un email a [email protected] con oggetto "unsubscribe". Per problemi inviare un email in INGLESE a [email protected] To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/caeyavmsn1sagl7mwpcvfbarzmfholof3ck4qjhpfvmsepsn...@mail.gmail.com

