[ILUG] sed

olearypj at rte.ie olearypj at rte.ie
Sun Jul 11 10:48:58 IST 2004


Hi folks,
          I need to delete the header & keep the body of an email,I tried it
with the following sed command, 
     sed '1,/^$/d' email > emailbody.txt
to delete from the first line up to the first white space,
but all I get is an empty emailbody.txt. I've tried the command with small text
files with different numbers of white spaces & it works everytime.
What am I doing wrong with the real email? There is what looks like a few blank
lines between the bottom of the header & the body, co I'm confused

Thanks 
         pat

******************************************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RTÉ may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
******************************************************************************



More information about the ILUG mailing list