Re: delete last line



Jean-Pierre Radley typed (on Thu, Jan 10, 2008 at 05:55:06PM -0500):
| pablo typed (on Thu, Jan 10, 2008 at 02:03:03PM -0800):
| | how can I delete the last line of a text file from the command line ?
| |
| | I mean only last line
|
| sed '$d' in.file > out.file
|
| --
| JP

Well... now I'm curious.

How would you delete ONLY the next-to-last line,
leaving the previous very last line to replace
the space where the next-to-last line was just
removed?

Jeff H
.