Re: Scripting question
- From: Daniel Landau <daniel.landau@xxxxxxxxxxx>
- Date: Tue, 17 Apr 2012 17:11:20 +0300
On Tue, Apr 17, 2012 at 4:52 PM, Eduardo M KALINOWSKI
<eduardo@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/CAPBTYu4KBgb55tjHHXysWed=+s2=kDnSECYNT1i=H1JoWm9XTQ@xxxxxxxxxxxxxx
- References:
- Scripting question
- From: Chris
- Re: Scripting question
- From: Eduardo M KALINOWSKI
- Scripting question
- Prev by Date: Re: difficult to isolate problem - browser access to router has problems on on machine but not other
- Next by Date: Re: difficult to isolate problem - browser access to router has problems on on machine but not other
- Previous by thread: Re: Scripting question
- Index(es):
Relevant Pages
|