test.sh:

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

 

输出

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

相关文章: