发信人: Sun (大灯泡), 信区: Npsos
标 题: 明天程序这个样子的,一律no pass
发信站: 哈工大紫丁香 (2003年01月02日21:31:59 星期四), 站内信件
发信人: heaven (2003), 信区: BlueLine
标 题: kakakakkaaaaaaa
发信站: 快意灌水站 (2003年01月02日21:14:03 星期四), 站内信件
#
#Script to create simple menus and action according to selected
#menu item
#
while :
do
clear
echo " ***********************************************"
echo " * Main menu * "
echo " ***********************************************"
echo "[1]show your current shell"
echo "[2]show your current home directory"
echo "[3]show your os type"
echo "[4]show your path setting"
echo "[5]show your current working directory"
echo "[6]show date/time,number of processes currently running"
echo "[7]show your os and version"
echo "[8]show the computer CPU information"
echo "[9]exit/quit"
echo "[9]exit/quit"
echo
"========================================================================="
echo -n "Enter your menu choice [1-9]:"
read yourch`
case $yourch in
1)echo "your current shell is $SHELL,press a key...";read;;
2)echo "your current home directory is $HOME,press a key...";read;;
3)echo "your os type is $OSTYPE,press a key...";read;;
4)echo "your path setting is $PATH,press a key...";read;;
5)echo "your current working directory is `pwd`,press a key...";read;;
6)echo "today is `date`";set `ps|wc -l`;x=`expr $1 - 1`;echo "the number of
processes currently running is $x,press a key...";read;;
7)echo "your os version is `dmesg|grep "Linux version"`,press a key...";read;;
8)echo "the computer CPU information:`dmesg|grep CPU`,press a key...";read;;
9)exit 0;;
*)echo "Warning!!!Please select choice [1-9]";
echo "Press a key...";read;;
esac
done
--
※ 来源:·快意灌水站 blueline.hit.edu.cn·[FROM: heaven.猪头小队员.co]
--
太阳当空照,灯泡呵呵笑,
mm说,早上好,你为什么又不理我了?
我已脱光了,mm管得牢,
高高跳,大声叫,幸福的生活需要我们共同来创造!
※ 来源:·哈工大紫丁香 bbs.hit.edu.cn·[FROM: 202.118.239.80]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:8.339毫秒