菜单选项打印

#!/bin/sh
clear
echo -e "\n\n\t\t\tScripts admin menu"
echo -e "\n\t\t++++++++++++++++++++++++++++\n"
echo -e "\t\t1.  Install Apche"
echo -e "\t\t2.  Install PHP"
echo -e "\t\t3.  Install Mysql"
echo -e "\n\t\t++++++++++++++++++++++++++++"
echo -en "\n\t\t  Please enter Install option: " 
read -t 5 -n 1 NUM
case $NUM in 
    1) 
    echo -e "\n\nInstall Apple\n"
    ;;
    2) 
    echo -e "\n\nInstall PHP\n"
    ;;
    3)
    echo -e "\n\nInstall Mysql\n"
    ;;
        *)
        echo -e "\n\n\tUsge: Enter 1|2|3\n"
esac
posted @ 2018-05-11 16:22  Me-lihu  阅读(1)  评论(0编辑  收藏  举报