版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
版权
#!/bin/bash
echo " input first parm:"
read a
echo " input second parm:"
read b
echo " input third parm:"
if [ $a -gt $b -a $a -gt $c ]
then
echo "max is $a"
fi
if [ $b -gt $a -a $b -gt $c ]
then
echo "max is $b"
fi
if [ $c -gt $b -a $c -gt $c ]
then
echo "max is $c"
fi