Scripting question
On Tue, Apr 17, 2012 at 4:52 PM, Eduardo M KALINOWSKI
<eduardo@kalinowski.com.br> wrote:
> On Ter, 17 Abr 2012, Chris wrote:
>> 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
>
Read that too, but try also searching online for "sed tutorial". The
line to do this specific thing is:
$ sed -e 's/^Smtp:/To:/' oldfile > newfile
Daniel Landau
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAPBTYu4KBgb55tjHHXysWed=+s2=kDnSECYNT1i=H1JoWm9XT Q@mail.gmail.com">http://lists.debian.org/CAPBTYu4KBgb55tjHHXysWed=+s2=kDnSECYNT1i=H1JoWm9XT Q@mail.gmail.com
|