整數比較: int=1 if [ $int -eq 1 ]; then echo "true" else echo "false" fi. 備註: -eq:意指兩個數值是否相等。 -ne:意指兩個數值是否不相等。
確定! 回上一頁