Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove last line

Status
Not open for further replies.

vti

Technical User
Feb 26, 2001
189
TR
Hi all,
Maybe it's so easy but ,how can i remove last line of a file.?

Thanks
 
Try out

sed '$d' your-file

or save as

sed '$d' your-file > new-file

Cheers,
ND [smile]

bigoldbulldog@hotmail.com
 
thanks bigoldbulldog


best regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top