Re: [Fwd: consiglio per script su file di testo]
Marco Nenciarini (mnencia@centerweb.it) wrote:
> Comunque in perl si fa tutto prima e meglio:
>
> perl -i.bak -pe 'chomp($_) and s/$/ / if (!$i); $i = !$i' file-da-trattare
>
> prendi file-da-trattare e lo trasforma accorpando le righe a 2 a 2 e salva
> l'originale con estensione .bak
Splendido, funziona a meraviglia.
Mi sa che riprendo lo studio del perl ;-)
Grazie infinite.
Cordiali Saluti,
Tiziano.
--
"I guess I could be pretty pissed of about what happened to me... but it's·
hard to stay mad, when there's so much beauty in the world. Sometimes I feel·
like I'm seeing it all at once, and it's too much, my heart fills up like a·
balloon that's about to burst... "
Reply to: