echo "please input a word!"亩链
read Keypress
case "$Keypress" in
[A-Z] ) echo "Uppercase"
[a-z] ) echo "物毕lowercase"
[0-9] ) echo "Digital"
* ) echo "other words!"
esac
他俩调换一下位置,你试试。
示例如下:echo 'Please input a number(友行厅1-4)带扰 :'
read Num
case $Num in
1) echo 'You input 1'
2) echo 'You input 2'
3) echo 'You input 3'好隐
4) echo 'You input 4'
*) echo 'You do not input a number between 1 to 4'
esac
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)