ข้ามไปที่เนื้อหาหลัก

How to delete the last line from a file using sed command?

 

sed '$ d' filename.txt