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