| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| postfix配置 | 805 | 0 | 0 | 2009-03-23 | |
| 定时自动重启IIS和定时重启服务器 | 1632 | 0 | 0 | 2009-03-23 | |
| mysql中的数据库对用户权限做限制 | 991 | 0 | 0 | 2009-03-23 | |
| 最简单的Linux关机命令程序 | 475 | 0 | 0 | 2009-03-23 | |
| Linux Find命令 | 1331 | 0 | 0 | 2009-03-23 | |
| RedHatAS4U3下实现南北互通的DNS配置 | 879 | 0 | 0 | 2009-03-23 | |
| ssh做ip隧道 | 1699 | 0 | 0 | 2009-03-23 | |
| 《Essential Linux Device Drivers》第4章 | 1020 | 0 | 0 | 2009-03-23 | |
| 应邀参加嵌入式Linux驱动开发技术讲座【上海,2008.12.13】 | 1005 | 0 | 0 | 2009-03-23 | |
| 《Essential Linux Device Drivers》第3章(上) | 1068 | 0 | 0 | 2009-03-23 | |
| 会见skyeye项目创始人陈渝老师 | 1866 | 0 | 0 | 2009-03-23 | |
| 《Essential Linux Device Drivers》第1章 | 821 | 0 | 0 | 2009-03-23 | |
| 《Essential Linux Device Drivers》前言(中英文) | 1696 | 0 | 0 | 2009-03-23 | |
| 《Essential Linux Device Drivers》序(中英文) | 1388 | 0 | 0 | 2009-03-23 | |
| 6月14日Linux设备驱动开发免费讲座PPT | 1041 | 0 | 0 | 2009-03-23 | |
| 6月14日嵌入式Linux高级开发免费技术讲座(上海) | 998 | 0 | 0 | 2009-03-23 | |
| 关于《详解》第12.1节按键驱动的进一步阐述 | 1009 | 0 | 0 | 2009-03-23 | |
| Linux下的C编程实战(四)――“线程”控制与“线程”通信编程 | 1711 | 0 | 0 | 2009-03-23 | |
| 《Linux设备驱动开发详解》简介 | 1362 | 0 | 0 | 2009-03-23 | |
| 告《Linux设备驱动开发详解》读者书 | 971 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。