shell学习

set -e #遇到错误不继续执行, 默认是set +e,遇到错误继续执行

echo用法

是否使用双引号区别:使用双引号原样输出,不使用双引号会去除多余空格

1
echo hello   world  你好 outout:hello world 你好
阅读更多