On Tue, Apr 17, 2012 at 4:52 PM, Eduardo M KALINOWSKI <edua...@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-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAPBTYu4KBgb55tjHHXysWed=+s2=kDnSECYNT1i=h1jowm9...@mail.gmail.com