| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| LINUX下用脚本实现JDK+TOMCAT | 1717 | 0 | 0 | 2009-03-23 | |
| JDK+TOMCAT在LINUX下简单的配置 | 1008 | 0 | 0 | 2009-03-23 | |
| 想学linux,要学什么 | 1856 | 0 | 0 | 2009-03-23 | |
| LINUX 初学者资料 | 849 | 0 | 0 | 2009-03-23 | |
| Red Hat Linux 9 安装图解 | 1272 | 0 | 0 | 2009-03-23 | |
| ChinaITLab Linux实战工程师网校课程-8CD | 1095 | 0 | 0 | 2009-03-23 | |
| 构建Linux局域网 | 1391 | 0 | 0 | 2009-03-23 | |
| Linux服务器安全点滴 | 1375 | 0 | 0 | 2009-03-23 | |
| LINUX系统一些监管命令 | 897 | 0 | 0 | 2009-03-23 | |
| Linux 170个常见问题的详细解答 | 2096 | 0 | 0 | 2009-03-23 | |
| 通过串口关闭Linux服务器 | 1064 | 0 | 0 | 2009-03-23 | |
| RedHat linux inittab详解 | 774 | 0 | 0 | 2009-03-23 | |
| RedHat Linux 9键盘的快捷操作 | 910 | 0 | 0 | 2009-03-23 | |
| 自已动手制作Linux下拼音五笔输入法 | 974 | 0 | 0 | 2009-03-23 | |
| 如何在linux下面挂载ntfs分区 | 1009 | 0 | 0 | 2009-03-23 | |
| 基础教程-学用Linux命令 | 768 | 0 | 0 | 2009-03-23 | |
| Linux下的网络邻居Samba | 1516 | 0 | 0 | 2009-03-23 | |
| 获取linux 2.6.15 root权限 | 1823 | 0 | 0 | 2009-03-23 | |
| 配置备份DHCP服务器(LINUX) | 1026 | 0 | 0 | 2009-03-23 | |
| 让Windows下的驱动乖乖在Linux中安家! | 1081 | 0 | 0 | 2009-03-23 |
朋友你好!
我刚开始搞linux,碰到了很多问题,想问你下,希望能帮我解答下。
下面是我的一段shell 程序
#!/bin/sh
while [ 0 ]
do
read score
if [ $score -lt 60 ];then
echo " you must work hard!"
elif [ $score -lt 80 ]
echo " just so so,you should do better"
elif [ $score -le 100 ]
echo ”done well ,keep it "
fi
echo " if you want to contiune press y,else press any key to exit"
read C
if [ $c =y ];then
contiune
else
echo "thanks for coming"
fi
done
运行
$ sh -x test.sh
有个错误提示在第二个if出(if 【 $C =y ]) unary operator expected
是什么原因呀?
我以为是一个shell程序里不能同时出现两个if--then--else语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。