#!/bin/bash echo "第一个数字"
read a
echo "第二个数字"
read b if [ $a -gt $b ]
then
echo "$a 更大" elif [ $a -lt $b ]
then
echo "$b 更大" else
echo "相同"
2024-01-22 08:55:46
#!/bin/bash echo "第一个数字"
read a
echo "第二个数字"
read b if [ $a -gt $b ]
then
echo "$a 更大" elif [ $a -lt $b ]
then
echo "$b 更大" else
echo "相同"