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

Re: Scripting question



perl -e 'while(<>){chomp; s/root/Root/g; print  "$_\n"; }' /etc/passwd



Il giorno 17 aprile 2012 15:52, Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> ha scritto:
On Ter, 17 Abr 2012, Chris wrote:
Firstly I petty much suck at scripting so I need help.

I have a file where each line begins with

Smtp:

I would like have the Smtp: replaced with To:  leaving all that follows in each line untouched and piped into a new file.

man sed


--
The majority of husbands remind me of an orangutang trying to play the violin.
               -- Honor' e DeBalzac

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br




--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.orgwith a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: [🔎] 20120417105220.Horde.5niudUisJlFPjXWUaIYVfNA@mail.kalinowski.com.br" target="_blank">http://lists.debian.org/20120417105220.Horde.5niudUisJlFPjXWUaIYVfNA@mail.kalinowski.com.br




--
esta es mi vida e me la vivo hasta que dios quiera

Reply to: