Shell Script : if 條件式 @ 兩隻小虎,一隻豬 :: 痞客邦 PIXNET ::
在shell script 中if 條件式的基本語法如下 if [ CONDITION ] then ..... else ..... fi if test CO ... [ string1 = string2 ] string1 and string2 are equal [ string1 != string2 ] string1 and string2 are not equal [ string1 \< string2 ] string1 is lexically less than st...