标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
Linux文件系统:一分钱一分货 | 1435 | 0 | 0 | 2009-03-23 | |
Linux如何加载U盘(转载) | 766 | 0 | 0 | 2009-03-23 | |
linux 备份还原(基于kistart ,rsync) | 473 | 0 | 0 | 2009-03-23 | |
安装“ubuntu-8.04-server”(下) | 974 | 0 | 0 | 2009-03-23 | |
安装“ubuntu-8.04-server”(中) | 1105 | 0 | 0 | 2009-03-23 | |
linux Firefox汉化 | 781 | 0 | 0 | 2009-03-23 | |
安装和使用Backup Exec 12.5 Remote Media Agent | 1670 | 0 | 0 | 2009-03-23 | |
linux实用方法 | 1454 | 0 | 0 | 2009-03-23 | |
linux面试题(简答题部分) | 900 | 0 | 0 | 2009-03-23 | |
Linux系统信息查看命令大全 | 352 | 0 | 0 | 2009-03-23 | |
linux直接给我们用户内核就好了 | 926 | 0 | 0 | 2009-03-23 | |
rsync 使用说明 | 1501 | 0 | 0 | 2009-03-23 | |
openSUSE: 终于明白了为什么x86_64下无法安装firefox的java插件 | 1912 | 0 | 0 | 2009-03-23 | |
Linux: GeForce 8400M GS用户千万不要安装177.80版本驱动 | 1141 | 0 | 0 | 2009-03-23 | |
如何系统的学习linux? | 215 | 0 | 0 | 2009-03-23 | |
Windows与VMware下的Linux文件共享方式总结 | 1095 | 0 | 0 | 2009-03-23 | |
发现大量的TIME_WAIT解决办法 | 2233 | 0 | 0 | 2009-03-23 | |
red hat 9 ?2ì??·óéoíiptables nat | 825 | 0 | 0 | 2009-03-23 | |
Linux全攻略--系统性能、进程监控和日志管理 | 956 | 0 | 0 | 2009-03-23 | |
Linux全攻略--系统性能、进程监控和日志管理 | 1385 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。