| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| ELF文件格式解析 | 770 | 0 | 0 | 2009-03-23 | |
| linux 磁盘配额 | 599 | 0 | 0 | 2009-03-23 | |
| [原创]Zenoss配置入门--通过SSH远程监控Linux | 625 | 0 | 0 | 2009-03-23 | |
| Linux整理笔记之一:用户环境 | 1072 | 0 | 0 | 2009-03-23 | |
| linux整理笔记二 系统管理命令 | 552 | 0 | 0 | 2009-03-23 | |
| linux整理笔记之三 文件系统维护 | 490 | 0 | 0 | 2009-03-23 | |
| linux整理笔记之四 :管理磁盘文件系统 | 370 | 0 | 0 | 2009-03-23 | |
| linux整理笔记之十三 升级软件 | 737 | 0 | 0 | 2009-03-23 | |
| Linux系统的部署 | 776 | 0 | 0 | 2009-03-23 | |
| Linux系统下到哪儿寻找硬件错误 | 1137 | 0 | 0 | 2009-03-23 | |
| Linux mail解决方案详解 | 1987 | 0 | 0 | 2009-03-23 | |
| Wayland:Linux的新X Server | 1858 | 0 | 0 | 2009-03-23 | |
| linux检查网络状态脚本 | 1424 | 0 | 0 | 2009-03-23 | |
| Linux进程创建,子进程对父进程资源“写时拷贝”的证明 | 1076 | 0 | 0 | 2009-03-23 | |
| 《Linux设备驱动开发详解》繁体中文版台湾销售情况佳 | 767 | 0 | 0 | 2009-03-23 | |
| 《Linux设备驱动开发详解》荣获51CTO、中国图书商报、China-pub “2008年度最佳技术图书” | 1221 | 0 | 0 | 2009-03-23 | |
| 终于在64位Fedora 10里成功安装Gmlive啦 | 966 | 0 | 0 | 2009-03-23 | |
| linux2.6.14移植到sbc2410上 | 836 | 0 | 0 | 2009-03-23 | |
| Linux 的时区问题 | 1769 | 0 | 0 | 2009-03-23 | |
| Linux系统调用--uname函数详解 | 1613 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。