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