echo
用途:用來顯示一行文字,默認會自動換行
-e 支持轉義
[root@hqy shell]# echo -e "he\nqiuyu"
he
qiuyu
-n 取消自動換行
[root@hqy shell]# echo -n "heqiuyu"
heqiuyu[root@hqy shell]#
echo
用途:用來顯示一行文字,默認會自動換行
-e 支持轉義
[root@hqy shell]# echo -e "he\nqiuyu"
he
qiuyu
-n 取消自動換行
[root@hqy shell]# echo -n "heqiuyu"
heqiuyu[root@hqy shell]#