标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
我想自学Linux,需要从哪些方面学起 | 1255 | 0 | 0 | 2009-03-23 | |
一个新手RHCE的酸甜苦辣 | 723 | 0 | 0 | 2009-03-23 | |
北大青鸟linux课件出现错误? | 970 | 0 | 0 | 2009-03-23 | |
linux crontab 详解 | 904 | 0 | 0 | 2009-03-23 | |
Designing.and.Implementing.Linux.Firewalls.and.QoS | 626 | 0 | 0 | 2009-03-23 | |
OReilly.Linux.Networking.Cookbook.Nov.2007 | 604 | 0 | 0 | 2009-03-23 | |
Linux下常用压缩格式的压缩与解压方法 | 1072 | 0 | 0 | 2009-03-23 | |
Linux自启动设置详解 | 1025 | 0 | 0 | 2009-03-23 | |
linux下面的时间设置 | 1055 | 0 | 0 | 2009-03-23 | |
Linux下安装最新Apache2.0.52+PHP5+GD2+MySQL等 | 1100 | 0 | 0 | 2009-03-23 | |
Fedora Linux基本配置 | 957 | 0 | 0 | 2009-03-23 | |
让Linux32位支持4G以上内存 | 1500 | 0 | 0 | 2009-03-23 | |
Linux操作系统下安装最新的gcc4.2.2方法 | 788 | 0 | 0 | 2009-03-23 | |
Linux常用命令一览 | 614 | 0 | 0 | 2009-03-23 | |
Linux启动问题 | 975 | 0 | 0 | 2009-03-23 | |
[转载]Linux挂载NTFS分区方法 | 723 | 0 | 0 | 2009-03-23 | |
linux引导程序切换 | 645 | 0 | 0 | 2009-03-23 | |
linux启动过程详解 | 759 | 0 | 0 | 2009-03-23 | |
对 Linux 内核进行压力测试 | 1575 | 0 | 0 | 2009-03-23 | |
工作二:选用CentOS | 1030 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。