标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux QOS流量管理实例一 | 1279 | 0 | 0 | 2009-03-23 | |
linux中的七个运行级别 | 985 | 0 | 0 | 2009-03-23 | |
VMware Converter 4.0 支持Linux | 2043 | 0 | 0 | 2009-03-23 | |
linux QOS流量管理实例二 | 1580 | 0 | 0 | 2009-03-23 | |
windows连接linux系统telnet端口23无法连接的问题 | 3806 | 0 | 0 | 2009-03-23 | |
关闭LINUX防火墙 | 1385 | 0 | 0 | 2009-03-23 | |
Redhat Linux 软件安装 | 1718 | 0 | 0 | 2009-03-23 | |
VMware中Linux系统时间与主机同步以及时区设置 | 1867 | 0 | 0 | 2009-03-23 | |
Linux下通过rpm包安装MySQL | 3475 | 0 | 0 | 2009-03-23 | |
linux QOS流量管理实例三 | 1994 | 0 | 0 | 2009-03-23 | |
Linux下的WebLogic安装部署 | 2179 | 0 | 0 | 2009-03-23 | |
linux下实现ftp匿名用户的上传和下载文件功能 | 2771 | 0 | 0 | 2009-03-23 | |
linux 简单配置汇总 上 | 1388 | 0 | 0 | 2009-03-23 | |
redhat5 DHCP | 2416 | 0 | 0 | 2009-03-23 | |
Linux下使用C/C++访问数据库——SQL Server篇 | 2089 | 0 | 0 | 2009-03-23 | |
Linux下C语言编程基础知识 | 1285 | 0 | 2 | 2009-03-23 | |
When Linux Runs Out of Memory | 1459 | 0 | 0 | 2009-03-23 | |
Linux双网卡绑定 | 1879 | 0 | 0 | 2009-03-23 | |
RHEL NFS服务的安装及简单配置 !!! | 1705 | 0 | 0 | 2009-03-23 | |
find 精解 | 1244 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。