标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
LINUX下的crontab计划任务 | 1543 | 0 | 0 | 2009-03-23 | |
LINUX下超级实用的免费字典软件:StarDict | 1306 | 0 | 0 | 2009-03-23 | |
Linux下SENDMAIL+OPENWEBMAIL(2) | 1056 | 0 | 0 | 2009-03-23 | |
Linux下SENDMAIL+OPENWEBMAIL(1) | 871 | 0 | 0 | 2009-03-23 | |
linux命令行下 怎么查看 服务所对应的程序 | 1837 | 0 | 0 | 2009-03-23 | |
VI(visual edit) 初体验 | 716 | 0 | 0 | 2009-03-23 | |
傻瓜式Linux之一:系统安装 | 819 | 0 | 0 | 2009-03-23 | |
linux(3??§£? | 594 | 0 | 0 | 2009-03-23 | |
关于Solaris中执行文件的问题 | 741 | 0 | 0 | 2009-03-23 | |
程序的链接和装入及Linux下动态链接的实现 | 678 | 0 | 0 | 2009-03-23 | |
如何学好Linux??请各位大哥指教。 | 791 | 0 | 0 | 2009-03-23 | |
傻瓜式Linux之二:网络配置 | 941 | 0 | 0 | 2009-03-23 | |
103 Free Security Apps for Mac, Windows and Linux | 866 | 0 | 0 | 2009-03-23 | |
给大家推荐一本好书 | 781 | 0 | 0 | 2009-03-23 | |
linux下的dns设置详解 | 1833 | 0 | 0 | 2009-03-23 | |
从硬盘上安装LINUXFC4 | 1716 | 0 | 0 | 2009-03-23 | |
将Linux作为桌面操作系统,你准备好了吗? | 1870 | 0 | 0 | 2009-03-23 | |
linux环境变量设置及保存地点 | 954 | 0 | 0 | 2009-03-23 | |
傻瓜式Linux之三:安装软件 | 1878 | 0 | 0 | 2009-03-23 | |
vsftp500错误简单解决方法 | 1251 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。