| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| How to mount a xen image ? | 1269 | 0 | 0 | 2009-03-23 | |
| Putty中文环境设置 | 1039 | 0 | 0 | 2009-03-23 | |
| 解决sendmail启动慢的问题 | 950 | 0 | 0 | 2009-03-23 | |
| LVM---逻辑盘卷管理 | 434 | 0 | 0 | 2009-03-23 | |
| Linux下增加Swap区 | 838 | 0 | 0 | 2009-03-23 | |
| Redhat AS5U2配置DHCP服务器 | 943 | 0 | 0 | 2009-03-23 | |
| Linux多播技术的使用和编程 | 989 | 0 | 0 | 2009-03-23 | |
| vsFTPd 服务器初学者指南 | 895 | 0 | 0 | 2009-03-23 | |
| linux下的apache2 + mysql5 + php4 + gd2 源码完整安装详解 | 1333 | 0 | 0 | 2009-03-23 | |
| linux+apache2.2+php5.2+mysql5.0源码安装 | 1632 | 0 | 0 | 2009-03-23 | |
| 本地时间与UTC(世界协调时间)的转换 | 2930 | 0 | 0 | 2009-03-23 | |
| Linux 用户(user)和用户组(group)管理概述 | 724 | 0 | 0 | 2009-03-23 | |
| linux snmp配置 | 990 | 0 | 0 | 2009-03-23 | |
| 大家眼中的桌面技术支持是什么样的? | 1524 | 0 | 0 | 2009-03-23 | |
| Linux下快速搭建ntp时间同步服务器 | 991 | 0 | 0 | 2009-03-23 | |
| 查看/修改Linux时区和时间 | 1047 | 0 | 0 | 2009-03-23 | |
| Linux | 727 | 0 | 0 | 2009-03-23 | |
| 配置缓存Cache-only服务器 | 1555 | 0 | 0 | 2009-03-23 | |
| HTTP工具CURL的使用简介 | 774 | 0 | 0 | 2009-03-23 | |
| iperf工具使用 | 975 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。