1. 程式人生 > >shell打印換行的辦法echo -e

shell打印換行的辦法echo -e

ont ace bottom microsoft orm 16px sim sun font

不加-e參數,直接連\n也輸出打印

[~]#echo "Hello world.\nHello sea"

Hello world.\nHello sea


加-e參數,\n換行
[~]#echo -e "Hello world.\nHello sea"
Hello world.
Hello sea
[~]#


shell打印換行的辦法echo -e