标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
LAMP | 876 | 0 | 0 | 2009-03-23 | |
Linux上FTP服务器的搭建 | 1782 | 0 | 0 | 2009-03-23 | |
Redhat linux 5 Server相关介绍 | 1152 | 0 | 0 | 2009-03-23 | |
linux用户和组帐户管理 | 2388 | 0 | 0 | 2009-03-23 | |
[linux|Ubuntu]安装杂牌扫描仪-方正F5580 | 1881 | 0 | 0 | 2009-03-23 | |
我与linux的第一次亲密接触,摸索着安装linux | 1539 | 0 | 0 | 2009-03-23 | |
linux可设置ip协议参数说明 | 1243 | 0 | 0 | 2009-03-23 | |
RHCE考试Troubleshooting中,linux 系统不能开机或可能出现的错误情况 | 1746 | 0 | 0 | 2009-03-23 | |
通过LoadRunner监控Linux的资源状况 | 1789 | 0 | 0 | 2009-03-23 | |
linux变量关联设置 | 1874 | 0 | 0 | 2009-03-23 | |
局域网内如何防止ARP欺骗 | 1300 | 0 | 0 | 2009-03-23 | |
linux 端口映射 | 1324 | 0 | 0 | 2009-03-23 | |
Linux系统信息查看命令大全 | 1750 | 0 | 0 | 2009-03-23 | |
[RHEL5系统管理攻略]--第1章 用户与组管理(1) | 1243 | 0 | 0 | 2009-03-23 | |
Redhat 5 phpmyadmin安装 | 1587 | 0 | 0 | 2009-03-23 | |
[RHEL5企业级Linux服务攻略]--第6季 Vsftpd服务全攻略之常规配置 | 1304 | 0 | 0 | 2009-03-23 | |
Linux下挂载NAS的命令 | 3936 | 0 | 0 | 2009-03-23 | |
WinXP下硬盘安装linux | 1745 | 0 | 0 | 2009-03-23 | |
Redhat 5 中网卡ip的设置 | 1873 | 0 | 0 | 2009-03-23 | |
Ubuntu软件安装方法 | 1334 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。