On Sunday 11 July 2004 10:48, olearypj at rte.ie wrote:
> 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
Maybe they are not blank lines.
What does "od -c email" say?
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!