| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| linux之apache | 1242 | 0 | 0 | 2009-03-23 | |
| ubuntu 8.04主菜单打不开 | 832 | 0 | 0 | 2009-03-23 | |
| linux之ip_tables | 1009 | 0 | 0 | 2009-03-23 | |
| Linux 系统中的超级权限的控制 | 972 | 0 | 0 | 2009-03-23 | |
| 基础知识:RedHat Linux AS 和ES的区别 | 1178 | 0 | 0 | 2009-03-23 | |
| linux压缩(解压缩)命令详解 | 1420 | 0 | 0 | 2009-03-23 | |
| RedHat Linux的AS/ES/WS区别 | 1066 | 0 | 0 | 2009-03-23 | |
| Linux 用户管理工具介绍 | 1025 | 0 | 0 | 2009-03-23 | |
| 看到好文章了(linux内核方面),大家共分享 | 972 | 0 | 0 | 2009-03-23 | |
| linux中rpm命令 | 862 | 0 | 0 | 2009-03-23 | |
| 黑基Linux VIP教程学习总结 | 507 | 0 | 0 | 2009-03-23 | |
| 嵌入式设备上的 Linux 系统开发 | 858 | 0 | 0 | 2009-03-23 | |
| LINUX目录详解 | 1157 | 0 | 0 | 2009-03-23 | |
| 接 嵌入式设备上的Linux系统开发 | 1553 | 0 | 0 | 2009-03-23 | |
| LINUX目录详解 | 1086 | 0 | 0 | 2009-03-23 | |
| 修改perl CPAN模块安装的配置文件 | 1451 | 0 | 0 | 2009-03-23 | |
| linux的free命令详解 | 433 | 0 | 0 | 2009-03-23 | |
| linux 脚本不执行,出现错误bad interpreter: No such file or directory | 2165 | 0 | 0 | 2009-03-23 | |
| linux面试题(填空部分) | 941 | 0 | 0 | 2009-03-23 | |
| Linux crontab-自动化的任务 | 1259 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。