#!/bin/bash
read -p "请输入你是同意还是yes,no" INPUT
INPUT= `echo $INPUT | tr 'A-Z' 'a-z' `
case $INPUT in
y|yes)
echo "you input is yes"
;;
n|no)
echo "you input is no"
;;
*)
echo "input flase,please try again "
esac
#!/bin/bash
read -p "请输入你是同意还是yes,no" INPUT
INPUT= `echo $INPUT | tr 'A-Z' 'a-z' `
case $INPUT in
y|yes)
echo "you input is yes"
;;
n|no)
echo "you input is no"
;;
*)
echo "input flase,please try again "
esac