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
相关文章
相关标签/搜索