read -p "请输入分数[0-100]:" fs
if [ $fs -gs 85 ] && [ $fs -le 100 ] ; then
echo " $fs 分,优秀 "
elif [ $fs -ge 70 ] && [ $fs -le 84 ]; then
echo " $fs 合格 "
else
echo " $fs 不合格 "
fi
read -p "请输入分数[0-100]:" fs
if [ $fs -gs 85 ] && [ $fs -le 100 ] ; then
echo " $fs 分,优秀 "
elif [ $fs -ge 70 ] && [ $fs -le 84 ]; then
echo " $fs 合格 "
else
echo " $fs 不合格 "
fi