Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在文本文件的最后一行末尾添加百分比符号 %?
我不希望 % 在新行上,它必须在最后一行的末尾。
谢谢!
sed '${s/$/%/}' file