- #!/bin/sh
-
-
echo "Please input \"yes\" or \"no\""
-
read var
-
case "$var" in
-
[yY][eE][sS]) echo "Your input is YES" ;;
-
-
[nN][oO]) echo "Your input is YES" ;;
-
-
*) echo "Input Error!" ;;
-
esac
-
exit 0
Reference
* http://hi.bccn.net/space-108519-do-blog-id-11561.html
阅读(1044) | 评论(0) | 转发(0) |