Re: delete last line
- From: Jeff Hyman <scolist@xxxxxxxxxx>
- Date: Fri, 11 Jan 2008 11:20:40 -0500
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
.
- Follow-Ups:
- Re: delete last line
- From: Jean-Pierre Radley
- Re: delete last line
- References:
- delete last line
- From: pablo
- Re: delete last line
- From: Jean-Pierre Radley
- delete last line
- Prev by Date: Re: osr 5.0.7 sendmail stopped working
- Next by Date: Re: delete last line
- Previous by thread: Re: delete last line
- Next by thread: Re: delete last line
- Index(es):