close

cv=1

if [ cv -eq 1 ];then

echo '$cv is equal to 1'

else

echo '$cv is not equal to 1'

fi

 

Attention : 記得if的中括號內的前後都要空一格.

arrow
arrow
    文章標籤
    shell
    全站熱搜

    JerryCheng 發表在 痞客邦 留言(0) 人氣()