shell 换行与不换行

 

test.sh:

echo -e "hello w\norld!"
echo -e "hello w\c"
echo "orld!"

 

输出

bogon:Desktop macname$ ./test.sh
hello w
orld!
hello world!

posted @ 2019-08-22 20:12  anobscureretreat  阅读(3789)  评论(0)    收藏  举报