手把手教你寫shell腳本——shell循環結構

一 條件語句 1.1 if—thenmysql #!/bin/bash if root then echo "hello" fi 若是命令運行成功(退出碼爲0),則then部分的命令被執行 1.2 if—then—elseweb #!/bin/bash if hunter then echo "hello" else echo "goodbye" fi if語句
相關文章
相關標籤/搜索