🌱 Drop last line of file

sed -i '' -e '$ d' filename.txt
Made by Brandon . If you find this project useful you can donate.