sed problem - last line of file deleted

Hi,
I am simply trying to remove the header row from a file using sed, but I'm running into strange difficulties.
It seems that in addition to removing the first line, this command is also removing the last line (or more specifically, clearing the last line, since the line is still counted even though it's empty).
For what it's worth, I've included several versions of the sed command all exhibiting the same behavior.

sed '1 d' file
sed 1d file
sed '1d' file
sed '1,1 d' file 
more +2  file > newfile
mv newfile file

I like the tail command as the best method for this problem.

> cat file06
blah blah www.boston.com more blah
ha ha yech yes nope not yet tomorrow
today www.unix.com future www.unix.org
forever and ever sportsillustrated.cnn.com high

> sed '1d' file06
ha ha yech yes nope not yet tomorrow
today www.unix.com future www.unix.org
forever and ever sportsillustrated.cnn.com high

> tail +2 file06
ha ha yech yes nope not yet tomorrow
today www.unix.com future www.unix.org
forever and ever sportsillustrated.cnn.com high

From what I have hear for sed and others to work correctly there MUST be a carrage return on the last line, other wise it cuts off.

Interesting. That could very well explain it.

Thanks for the input everyone else. I now have plenty of workarounds.:slight_smile: