|
while true;do
clear
echo " ENTER CHOICE"
echo " a) Load filter rule."
echo " b) Clean filter rule."
echo " c) Reboot linux."
echo " d) Close the compute."
echo -n " Please choice[a-d]:"
read $CHOICE
case $CHOICE in
a) echo 1;;
b) echo 2;;
c) echo 3;;
d) echo 4;;
*) echo 5;;
esac
sleep 1
done
为什么我怎么选,都是执行"echo 5"?怎么我贴的脚本每行前的空格都没了? |
|