标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
基于Linux 的PC 集群 | 1450 | 0 | 0 | 2009-03-23 | |
Linux中GCC的应用介绍 | 1076 | 0 | 0 | 2009-03-23 | |
经常使用的正则表达式举例 | 1242 | 0 | 0 | 2009-03-23 | |
也谈"难够死"nagios | 1321 | 0 | 0 | 2009-03-23 | |
可扩展、高可用、负载均衡网站架构设计方案 | 1224 | 0 | 0 | 2009-03-23 | |
关于 find中 perm 的理解 | 765 | 0 | 0 | 2009-03-23 | |
负载均衡技术沙龙问答汇集(第一期) | 777 | 0 | 0 | 2009-03-23 | |
linux 充电 | 672 | 0 | 0 | 2009-03-23 | |
Samba | 786 | 0 | 0 | 2009-03-23 | |
安装openssh出现的问题 | 939 | 0 | 0 | 2009-03-23 | |
LINUX EXPECT的安装 | 724 | 0 | 0 | 2009-03-23 | |
Linux Samba服务器配置小记 | 1203 | 0 | 0 | 2009-03-23 | |
挺好用的一个小软件 | 659 | 0 | 0 | 2009-03-23 | |
Linux 命令学习 | 827 | 0 | 0 | 2009-03-23 | |
虚拟机上Redhat linux9.0的VMware Tools详细图文教程 | 1158 | 0 | 0 | 2009-03-23 | |
linux 修改系统时间 | 1099 | 0 | 0 | 2009-03-23 | |
linux服务器被黑了 | 1524 | 0 | 0 | 2009-03-23 | |
RHEL 5 telnet配置 | 1288 | 0 | 0 | 2009-03-23 | |
oracle 数据库由Linux平台向Windows平台迁移 | 1454 | 0 | 0 | 2009-03-23 | |
Linux中消除扬声器的嘟嘟叫声 | 796 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。