我想\n仅从unix中的文件末尾删除换行符, 例如
\n
abc def ghi ?
输出应该是
abc def ghi
在文件的末尾不应该有一个单一的 \n
unix newline file
file ×1
newline ×1
unix ×1