说我有一些任意的多行文本文件:
sometext moretext lastline
如何在不使文本文件无效的情况下仅删除文件的最后一个字符(e,而不是换行符或null)?
unix linux bash sed
bash ×1
linux ×1
sed ×1
unix ×1