shell去掉输出的末尾换行符 用echo -n $(you_command)即可。 比如: echo -n $(echo test) 输出: [searchstar@localhost~]$echo -n$(echo test) test[searchstar@localhost~]$
shell去掉输出的末尾换行符 用echo -n $(you_command)即可。 比如: echo-n$(echo test) 1. 输出: [searchstar@localhost ~]$ echo -n $(echo test) test[searchstar@localhost ~]$ 1. 2.
51CTO博客已为您找到关于shell去掉末尾换行符的相关内容,包含IT学习相关文档代码介绍、相关教程视频课程,以及shell去掉末尾换行符问答内容。更多shell去掉末尾换行符相关解答可以来51CTO博客参与分享和学习,帮助广大IT技术人实现成长和进步。