| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 在VMware中启用Linux桌面系统X-Window | 1188 | 0 | 0 | 2009-03-23 | |
| 转载:Linux系统下6个常见紧急情况的应急处理方法 | 1381 | 0 | 0 | 2009-03-23 | |
| linux-gate.so.1介绍补充(what is linux-gate.so.1?) | 907 | 0 | 0 | 2009-03-23 | |
| 和luster学习在Linux创建库函数 | 1044 | 0 | 0 | 2009-03-23 | |
| linux中的.so .a .la文件的含义 | 1836 | 0 | 0 | 2009-03-23 | |
| 与afreez一起学习DirectFB之:一个linux下的framebuffer例子的学问 | 964 | 0 | 0 | 2009-03-23 | |
| Linux之父盟友分道扬镳 直言开源模式软肋 | 1145 | 0 | 0 | 2009-03-23 | |
| windows与linux(包括linux虚拟机)自由连通无障碍! | 1445 | 0 | 0 | 2009-03-23 | |
| linux下非常好用的网站下载工具:wget | 1473 | 0 | 0 | 2009-03-23 | |
| Linux Framebuffer Driver Writing HOWTO for 2.2 kernels | 1464 | 0 | 0 | 2009-03-23 | |
| 分析评论:以Linux的名义“鼓噪开源政治” | 1583 | 0 | 0 | 2009-03-23 | |
| Linux势不可挡 微软开始妥协示好? | 1644 | 0 | 0 | 2009-03-23 | |
| Linux标准化:避免重蹈UNIX的覆辙 | 1077 | 0 | 0 | 2009-03-23 | |
| 新京报评论:Linux依靠政府扶持并不耻辱 | 919 | 0 | 0 | 2009-03-23 | |
| Linux Vs Windows 技术抑或金钱的博弈 | 1254 | 0 | 0 | 2009-03-23 | |
| 中国Linux市场现状与发展趋势 | 1347 | 0 | 0 | 2009-03-23 | |
| Linux获得真正3D桌面 开源支持者喜不自禁 | 1774 | 0 | 0 | 2009-03-23 | |
| 开源领袖炮轰Linux之父 为反向工程协议辩护 | 990 | 0 | 0 | 2009-03-23 | |
| Linux的缔造者——Linus Torvalds | 1644 | 0 | 0 | 2009-03-23 | |
| Linux背后的人-Linux Torvalds | 630 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。