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

Re: Aggiornamenti dal fronte ...



On Mon, May 27, 2002 at 11:10:46AM +0200, /dev/null wrote:

> inoltre, "cat file | sed" e` perfettamente inutile: va benissimo
> $ sed -e s/ciao/miao/g -e s/buongiorno/buonasera/g file > nuovofile
> od anche
> $ sed -e s/ciao/miao/g -e s/buongiorno/buonasera/g < file > nuovofile
> (stabilire la differenza tra queste ultime due e` lasciato come esercizio
> per il lettore :-) -- `man bash`).
> 
> Cosi`, anziche' eseguire tre programmi (cat, sed, sed) ne lanci uno solo.
Oppure, molto piu' semplicemente basta separare i comandi con ';'

$ sed 's/ciao/miao/g;s/buongiorno/buonasera/gi' < file > nuovofile
 
-- 
Pierluigi De Rosa (thorin@durin.khazad-dum.net).
<<      LINUX: the choice of a GNU generation     >>
<<   For my real address... ask the Balrog.       >>
* Sostenete la Lega per la Soppressione dei Troll *


-- 
To UNSUBSCRIBE, email to debian-italian-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: