用echo -n $(you_command)即可。
echo -n $(you_command)
比如:
echo -n $(echo test)
输出:
[searchstar@localhost ~]$ echo -n $(echo test) test[searchstar@localhost ~]$