#!/bin/bash
mydate=`date +%Y/%m/%d `
mytime=`date +%T`
while true
do
clear
echo -e "\n\n -------------------------------------------------------------"
echo -e "\t 我们的一生 时间:$mydate $mytime "
echo -e "\n -------------------------------------------------------------"
echo -e "\t 1:工作"
echo -e "\t 2:买房"
echo -e "\t 3:结婚"
echo -e "\t 4:生子"
echo -e "\t 5:买车"
echo -e "\t 6:天堂"
echo -e "\n --------------------------------------------------------------\t"
echo "请选择[1,2,3,4,5,6]:"
read choice
case $choice in
6 )
break;;
1 )
echo "工作"
/home/infa/shell/job.sh
echo "按回车键返回主界面..."
read mainmenu2
continue;;
2 )
clear
echo "买房"
/home/infa/shell/house.sh
echo "按回车键返回主界面..."
read mainmenu2
continue;;
3 )
clear
echo "结婚"
/home/infa/shell/marry.sh
echo "按回车键返回主界面..."
read mainmenu2
continue;;
4 )
clear
echo "生子"
/home/infa/shell/make.sh
echo "按回车键返回主界面..."
read mainmenu2
continue;;
5 )
clear
echo "买车"
/home/infa/shell/car.sh
echo "按回车键返回主界面..."
read mainmenu2
continue;;
esac
stty echo
done
exit 0
阅读(1927) | 评论(0) | 转发(0) |