1 #提示用户输入一个数字(1-12),然后显示其对应的月份的 英文 2 #!/bin/bash 3 4 echo "Please input a month [0-12]" 5 read month 6 7 case "$month" in 8 1) 9 echo "The month is January!";; 10 2) 11 echo "the month is February!";; 12 3) 13 echo "The month is March!";; 14 *) 15 echo "The month is in[4-12]";; 16 esac