标签:条件判断 if条件判断 echo pass ade bin else 条件 fail
#!/bin/bash
read -p "Enter: " GRADE
if [ $GRADE -ge 85 ] && [ $GRADE -le 100 ];
then
echo "$GRADE is Excellent"
elif [ $GRADE -gt 70 ] && [ $GRADE -le 84 ]
then
echo "$GRADE is Pass"
else
echo "$GRADE is fail"
fi
~
标签:条件判断 if条件判断 echo pass ade bin else 条件 fail
原文地址:https://blog.51cto.com/sampsondotqiu/2489850