shell echo打印换行的方法
echo要支持同C语言一样的\转义功能,只需要加上参数-e,如下所示:
[~]#echo "Hello world.\nHello sea"
Hello world.\nHello sea
[~]#echo -e "Hello world.\nHello sea"
Hello world.
Hello sea
echo要支持同C语言一样的\转义功能,只需要加上参数-e,如下所示:
[~]#echo "Hello world.\nHello sea"
Hello world.\nHello sea
[~]#echo -e "Hello world.\nHello sea"
Hello world.
Hello sea