shell基礎編程

shell基礎編程 1編寫shell程序判斷字符串是否爲數字字符串 #! /bin/bash expr $1 "+" 10 &> /dev/null if [ $? -eq 0 ];then echo "$1 is number" else echo "$1 not number" fi 2編寫shell程序比較2個數的大小 #! /bin/bash max=0 if [ "$1" -ge
相關文章
相關標籤/搜索