Shell 模板 (Yes or NO)

#!/bin/bash
#Judge Yes or No!
#Author yarn
#Date 2018-9-7 09:07:14
########################
read -p "Please input Yes or No:" anw
case $anw in
[Yy][Ee][Ss]|[yY])
echo yes!
;;
[Nn][Oo]|[Nn])
echo no!
;;
esac

 

posted @ 2018-09-07 09:20  xyarn  阅读(323)  评论(0编辑  收藏  举报
//https://esofar.github.io/cnblogs-theme-silence/#/guide