标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux snmp配置 | 969 | 0 | 0 | 2009-03-23 | |
大家眼中的桌面技术支持是什么样的? | 1486 | 0 | 0 | 2009-03-23 | |
Linux下快速搭建ntp时间同步服务器 | 963 | 0 | 0 | 2009-03-23 | |
查看/修改Linux时区和时间 | 966 | 0 | 0 | 2009-03-23 | |
Linux | 710 | 0 | 0 | 2009-03-23 | |
配置缓存Cache-only服务器 | 1488 | 0 | 0 | 2009-03-23 | |
HTTP工具CURL的使用简介 | 748 | 0 | 0 | 2009-03-23 | |
iperf工具使用 | 963 | 0 | 0 | 2009-03-23 | |
centos下搭建DNS~~~ | 727 | 0 | 0 | 2009-03-23 | |
Pxe+dhcp+nfs+tftp 网络安装linux | 854 | 0 | 0 | 2009-03-23 | |
Fedora 10中的两个需要解决的问题 | 688 | 0 | 0 | 2009-03-23 | |
linux下安装oracle10g | 1831 | 0 | 0 | 2009-03-23 | |
Linux兼容内核0.2.2-1版发布,愿景击溃微软市场垄断 | 2085 | 0 | 0 | 2009-03-23 | |
Linux下家庭计算机防火墙设置 | 857 | 0 | 0 | 2009-03-23 | |
LINUX查看硬件配置 | 3104 | 0 | 0 | 2009-03-23 | |
Vmware 6.5.1正式版在Ubuntu 8.10下面运行非常缓慢的解决方法 | 981 | 0 | 0 | 2009-03-23 | |
Linux 故障恢复 | 456 | 0 | 0 | 2009-03-23 | |
linux下的lvs配置 | 1081 | 0 | 0 | 2009-03-23 | |
Red Hat日志文件系统-ext3 | 747 | 0 | 0 | 2009-03-23 | |
The Linux commands you need! | 1397 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。