LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] sed

[ILUG] sed

Timothy Murphy tim at birdsnest.maths.tcd.ie
Sun Jul 11 11:16:21 IST 2004


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?

-- 
Timothy Murphy  
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



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell