比较三个数
#!/bin/bash
echo "enter:"
read a b c
if [ $a -gt $b ]
then
max=$a
else
max=$b
fi
if [ $c -gt $max ]
then
max=$c
fi
echo "$max"
转载于:https://blog.51cto.com/ghnhl/457527
比较三个数
#!/bin/bash
echo "enter:"
read a b c
if [ $a -gt $b ]
then
max=$a
else
max=$b
fi
if [ $c -gt $max ]
then
max=$c
fi
echo "$max"
转载于:https://blog.51cto.com/ghnhl/457527