-ge:意指數值1是否大於等於數值2。 -le:意指數值1是否小於等於數值2。 小數比較(使用bc指令): int=3.14 if [ `echo "$int < 6"|bc` -eq 1 ]; then
確定! 回上一頁