linux中echo命令实现不换行输出

 

1、

[root@rhel7pc1 test]# echo "xxx"
xxx
[root@rhel7pc1 test]# echo -n "xxx"   ## -n选项实现不换行输出
xxx[root@rhel7pc1 test]#

 

posted @ 2022-04-05 19:55  小鲨鱼2018  阅读(505)  评论(0编辑  收藏  举报