#!/bin/sh
# 该变量就是要判断的变量
VAR="1234908"
RET=`expr match $VAR "[0-9][0-9]*$"`
if [ ${RET} -gt 0 ]; then
echo "It is a Number!"
else
echo "Not a Number!"
fi
#!/bin/sh
# 该变量就是要判断的变量
VAR="1234908"
RET=`expr match $VAR "[0-9][0-9]*$"`
if [ ${RET} -gt 0 ]; then
echo "It is a Number!"
else
echo "Not a Number!"
fi