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