int1=100
int2=200
if test $[num1] -eq $[num2]
then
echo "num1==num2"
else
echo "num1!=num2"
fi
输出:
num1==num2
shell脚本之用test和eq判断两个数的大小
阅读 64
2022-06-06
int1=100
int2=200
if test $[num1] -eq $[num2]
then
echo "num1==num2"
else
echo "num1!=num2"
fi
输出:
num1==num2
相关推荐
精彩评论(0)