#!/bin/bash #篩選分數等級 score=500 if [ $score -gt 100 ];then echo "分數不正確" elif [ $score -ge 80 ];then echo "優秀" elif [ $score -ge 60 ];then echo "及格" elif [ $score -ge 0 ];then echo "不及格" else echo "分數不正確" fi