标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux基本网络配置 | 1121 | 0 | 0 | 2009-03-23 | |
linux的ftp服务详细配置 | 5470 | 0 | 0 | 2009-03-23 | |
Linux---一天的郁闷与收获 | 793 | 0 | 0 | 2009-03-23 | |
Linux?μí3??′??¨óò??·t???÷ | 1097 | 0 | 0 | 2009-03-23 | |
LINUX其他重要服务 | 751 | 0 | 0 | 2009-03-23 | |
Linux 发行版镜像下载 | 1012 | 0 | 0 | 2009-03-23 | |
Linux系统下设置网络安全 | 840 | 0 | 0 | 2009-03-23 | |
Linux性能监控,安全等命令集 | 1483 | 0 | 0 | 2009-03-23 | |
某公司linux面试问题,给已解答 | 888 | 0 | 0 | 2009-03-23 | |
vim 简单入门教程 | 550 | 0 | 0 | 2009-03-23 | |
偶工作远程一台LINUX机子突然疯了 | 918 | 0 | 0 | 2009-03-23 | |
Linux主机被入侵后的工作 | 597 | 0 | 0 | 2009-03-23 | |
linux caicai个人常用命令 | 676 | 0 | 0 | 2009-03-23 | |
用snmp和mrtg监控linux server | 861 | 0 | 0 | 2009-03-23 | |
Linux系统概念:索引节点 | 820 | 0 | 0 | 2009-03-23 | |
Linux下安装Oracle | 1512 | 0 | 0 | 2009-03-23 | |
Linux文件与目录权限 | 1668 | 0 | 0 | 2009-03-23 | |
Linux命令:改变文件或目录的访问权限 | 1781 | 0 | 1 | 2009-03-23 | |
ipmsg for Linux 安装 | 1039 | 0 | 0 | 2009-03-23 | |
linux下C编程 undefined reference to'exp'问题的解决 | 1199 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。