| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| Linux基本命令 | 1432 | 0 | 0 | 2009-03-23 | |
| 三大方便的开源Linux防火墙生成器技术 | 1654 | 0 | 0 | 2009-03-23 | |
| linux服务器大全 | 1444 | 0 | 0 | 2009-03-23 | |
| Windows&Linux双系统Grub调整攻略 | 1650 | 0 | 0 | 2009-03-23 | |
| 六步搞定RHEL5下的mysql镜像数据库配置 | 1121 | 0 | 0 | 2009-03-23 | |
| ARM的嵌入式Linux移植体验之基本概念 | 698 | 0 | 0 | 2009-03-23 | |
| 在Linux上安装MySQL Server 5.0 | 1653 | 0 | 0 | 2009-03-23 | |
| xwindows不能登录问题解决办法 | 1591 | 0 | 0 | 2009-03-23 | |
| linux 总结 | 1409 | 0 | 0 | 2009-03-23 | |
| 利用Crontab为Linux定时备份Mysql数据库 | 790 | 0 | 0 | 2009-03-23 | |
| Linux下MySQL数据库二进制日志恢复方法 | 1600 | 0 | 0 | 2009-03-23 | |
| 使用Windows的启动菜单来启动Linux系统 | 984 | 0 | 0 | 2009-03-23 | |
| Linux下建立Mysql镜像数据库 | 855 | 0 | 0 | 2009-03-23 | |
| 实用技巧:Linux系统下查CPU个数的方法 | 919 | 0 | 0 | 2009-03-23 | |
| Linux环境下多链路负载均衡(ADSL线路) | 1338 | 0 | 0 | 2009-03-23 | |
| 工作心得 | 1123 | 0 | 0 | 2009-03-23 | |
| 小小的一句话愁了一天! | 714 | 0 | 0 | 2009-03-23 | |
| 快速删除FC7 | 665 | 0 | 0 | 2009-03-23 | |
| Linux下用户管理的一些命令介绍 | 1730 | 0 | 0 | 2009-03-23 | |
| 在Linux上远程部署Java应用程序 | 1035 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。