if [ $# -ne 2 ]
then
echo You must input the month and years
else
switch ($1)
case "January":
cal 1 $2
case "February":
cal 2 $2
case "March":
cal 3 $2
case "April":
cal 4 $2
case "May":
cal 5 $2
case "June":
cal 6 $2
case "July":
cal 7 $2
case "August":
cal 8 $2
case "September":
cal 9 $2
case "October":
cal 9 $2
case "October":
cal 10 $2
case "November":
cal 11 $2
case "December":
cal 12 $2
default:
echo "Please input right month!
fi
我用的是bash