001、
(base) root@PC1:/home/test3# ls (base) root@PC1:/home/test3# echo "xx" xx (base) root@PC1:/home/test3# echo -n "xx" ## echo -n 实现输出字符串,但是不输出换行符 xx(base) root@PC1:/home/test3#
002、printf实现
(base) root@PC1:/home/test3# printf "xxxn" xxx (base) root@PC1:/home/test3# printf "xxx" ## printf实现输出字符串, 但是不输出换行符 xxx(base) root@PC1:/home/test3#