标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
RedHat AS 4.2+Oracle 10.2.0g+Linux Itanium 64 | 1632 | 0 | 0 | 2009-03-23 | |
Linux集群大全1 | 692 | 0 | 0 | 2009-03-23 | |
Linux认证复习题模拟测试 | 1137 | 0 | 0 | 2009-03-23 | |
Linux像老婆,Windows像妓女! | 732 | 0 | 0 | 2009-03-23 | |
基于Nagios的无人值守网络管理系统PANM的设计和实现 | 776 | 0 | 0 | 2009-03-23 | |
linux自己总结的一些命令 | 410 | 0 | 0 | 2009-03-23 | |
Linux服务 | 629 | 0 | 0 | 2009-03-23 | |
Linux学习篇 1.Linux的磁盘规划 | 880 | 0 | 0 | 2009-03-23 | |
基于Linux 的PC 集群 | 1453 | 0 | 0 | 2009-03-23 | |
Linux中GCC的应用介绍 | 1076 | 0 | 0 | 2009-03-23 | |
经常使用的正则表达式举例 | 1243 | 0 | 0 | 2009-03-23 | |
也谈"难够死"nagios | 1324 | 0 | 0 | 2009-03-23 | |
可扩展、高可用、负载均衡网站架构设计方案 | 1224 | 0 | 0 | 2009-03-23 | |
关于 find中 perm 的理解 | 778 | 0 | 0 | 2009-03-23 | |
负载均衡技术沙龙问答汇集(第一期) | 777 | 0 | 0 | 2009-03-23 | |
linux 充电 | 675 | 0 | 0 | 2009-03-23 | |
Samba | 788 | 0 | 0 | 2009-03-23 | |
安装openssh出现的问题 | 943 | 0 | 0 | 2009-03-23 | |
LINUX EXPECT的安装 | 726 | 0 | 0 | 2009-03-23 | |
Linux Samba服务器配置小记 | 1204 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。