shell多重判斷

[[email protected] shell]# vi if03.sh  #!/bin/bash a=4 if [ $a -lt 1 ] //先判斷是否滿足,不滿足跳到elif,兩個都不滿足執行else退出 then echo ok elif [ $a -gt 1 ] then echo ">1" else echo oh,no fi [[email protected] shell]# ba
相關文章
相關標籤/搜索