| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| linux学习资料 | 714 | 0 | 0 | 2009-03-23 | |
| linux系统GHOST备份方案 | 1591 | 0 | 0 | 2009-03-23 | |
| Linux Enterprise Cluster选译 | 1554 | 0 | 0 | 2009-03-23 | |
| X server 启动失败? 看我如何解决的 | 1576 | 0 | 0 | 2009-03-23 | |
| redhat9 vsftpd 500 00PS | 905 | 0 | 0 | 2009-03-23 | |
| 经典:Linux菜鸟入门级命令大全 | 994 | 0 | 0 | 2009-03-23 | |
| Linux网络配置命令 | 1323 | 0 | 2 | 2009-03-23 | |
| JBoss做成Redhat系统服务 | 751 | 0 | 0 | 2009-03-23 | |
| Linux环境下学C语言开发要学些什么 | 1627 | 0 | 0 | 2009-03-23 | |
| adsl 的怪事 | 683 | 0 | 0 | 2009-03-23 | |
| 编译安装glibc | 734 | 0 | 0 | 2009-03-23 | |
| Linux系统下搭建网站 | 1540 | 0 | 0 | 2009-03-23 | |
| linux基本网络配置 | 1133 | 0 | 0 | 2009-03-23 | |
| linux的ftp服务详细配置 | 5486 | 0 | 0 | 2009-03-23 | |
| Linux---一天的郁闷与收获 | 802 | 0 | 0 | 2009-03-23 | |
| Linux?μí3??′??¨óò??·t???÷ | 1119 | 0 | 0 | 2009-03-23 | |
| LINUX其他重要服务 | 765 | 0 | 0 | 2009-03-23 | |
| Linux 发行版镜像下载 | 1030 | 0 | 0 | 2009-03-23 | |
| Linux系统下设置网络安全 | 855 | 0 | 0 | 2009-03-23 | |
| Linux性能监控,安全等命令集 | 1496 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。