search:shell script數字運算相關網頁資料

    瀏覽:499
    日期:2025-06-15
    2012年3月8日 ... Shell Script 數字比對(包含小數). 整數比較: int=1 if [ $int -eq 1 ]; then echo "true" else echo "false" fi. 備註: -eq:意指兩個數值是否相等。 -ne:意指兩 ......