摘要:
流程控制: #Sh的流程控制不可为空,else分支如果没有语句执行,就不用写这个else if: if condition then command1 command2 ... commandN fi #也可写成一行:if[condition];then command;fi if else: if 阅读全文
摘要:
echo命令 1.显示普通字符串: echo "It is a test" 这里的双引号完全可以省略,以下命令与上面实例效果一致: echo It is a test 2.显示转义字符 echo "\"It is a test\"" 结果将是: "It is a test" 同样,双引号也可以省略 阅读全文