标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
Linux命令大全 | 1325 | 0 | 0 | 2009-03-23 | |
玩转Windows访问Linux下的共享文件 | 2129 | 0 | 0 | 2009-03-23 | |
linux根目录下各目录的功能 | 682 | 0 | 0 | 2009-03-23 | |
如何创建本地Ubuntu Linux Mirror镜像 | 1426 | 0 | 0 | 2009-03-23 | |
linux系统管理 第三部分 系统装好后的基本配置 | 1241 | 0 | 0 | 2009-03-23 | |
???-?íμ?′′?¨oíà?èY | 2981 | 0 | 0 | 2009-03-23 | |
15秒恢复root用户密码 | 853 | 0 | 0 | 2009-03-23 | |
oracle9i for linux AS3安装指南 | 1181 | 0 | 0 | 2009-03-23 | |
Linux 命令全集 | 751 | 0 | 0 | 2009-03-23 | |
转点别人写的给大家看, | 799 | 0 | 0 | 2009-03-23 | |
怎样在LINUX系统下安装MySQL | 924 | 0 | 0 | 2009-03-23 | |
Linux 配置X-manager | 989 | 0 | 0 | 2009-03-23 | |
一切皆有可能——在iPod上安装Linux | 1164 | 0 | 0 | 2009-03-23 | |
RHCT和RHCE考试中必考的内容 | 1038 | 0 | 0 | 2009-03-23 | |
linux下mysql 5.x得到root密码后的另外一种利用方式 | 744 | 0 | 0 | 2009-03-23 | |
Linux考前必读:RHCE考试准备大方向 | 1595 | 0 | 0 | 2009-03-23 | |
挂载LINUX的网卡驱动----英特尔主板 | 1008 | 0 | 0 | 2009-03-23 | |
Linux下root密码恢复 | 764 | 0 | 0 | 2009-03-23 | |
Linux 技巧 | 693 | 0 | 0 | 2009-03-23 | |
linux基礎資料 | 480 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。