????????shell??????case??select?÷???
????case??????????case/esac)
????????
????case $arg in
????pattern | sample)
????# arg in pattern or sample
????;;
????pattern1)
????# arg in pattern1
????;;
????*)
????#default
????;;
?????????pattern1 ??????????????????????????
????* ???????
????? ???????
????[abc] a?? b?? ??c???????????
????[a-n] ??a??n????????
????| ???????
?????????
????#!/bin/sh
????case $1 in
????start | begin)
????echo "start something"
????;;
????stop | end)
????echo "stop something"
????;;
????*)
????echo "Ignorant"
????;;
????esac
???????н????======================
????testcase.sh start
????start something
????select?????÷???????????????
????????
????select ????name in seq????
????do
????action
????done
?????????
????#!/bin/sh
????select ch in "begin" "end" "exit"
????do
????case $ch in
????"begin")
????echo "start something"
????;;
????"end")
????echo "stop something"
????;;
????"exit")
????echo "exit"
????break;
????;;
????*)
????echo "Ignorant"
????;;
????esac
????done;
???????н????

?????????select?????????????case?????á?
??????????shell?????????????????????????? ????????????