First off I have read the man pages for sed and am still having trouble working on a script to remove portions of a log:
My goal is to take a log file to be emailed, read the file and strip the portions away AFTER the line MIME-Version:1.0
and strip away until it to the line starting with Content-Type:application.
(HOWEVER, i would like for the sed command to keep the boundry line written before the Content-Type:application line.)
ex. removing everything bold and italicized. note this will be static so it wont always be the same information or linecount.
MIME-Version: 1.0
--_002_67C1678059C61F408194E53907AFB5CC09FB7E8BE6ISEXMB01RPadr_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Here goes nothing.
-----Original Message-----
From: =20
Sent: Friday, November 13, 2009 2:42 PM
To:
Subject: send to myself
This will be forwarded to mail2fax.
--_002_67C1678059C61F408194E53907AFB5CC09FB7E8BE6ISEXMB01RPadr_
Content-Type: application/pdf;
Any help would be appreciated. thank you.