标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux网卡驱动 | 3100 | 0 | 1 | 2009-03-23 | |
Linux操作系统下的集群工作原理及实战经历 | 763 | 0 | 0 | 2009-03-23 | |
修改linux as4系统默认语言 | 1353 | 0 | 0 | 2009-03-23 | |
关于Linux操作系统下RPM软件包的使用技巧 | 702 | 0 | 0 | 2009-03-23 | |
Linux常见紧急情况处理方法 | 1459 | 0 | 0 | 2009-03-23 | |
RedHatLinux AS3 U3 安装 oracle9204步骤 | 1182 | 0 | 0 | 2009-03-23 | |
Linux爱好者入门教程2----ubuntu配置 | 1063 | 0 | 0 | 2009-03-23 | |
ubuntu | 714 | 0 | 0 | 2009-03-23 | |
linux学习资料 | 693 | 0 | 0 | 2009-03-23 | |
linux系统GHOST备份方案 | 1571 | 0 | 0 | 2009-03-23 | |
Linux Enterprise Cluster选译 | 1533 | 0 | 0 | 2009-03-23 | |
X server 启动失败? 看我如何解决的 | 1515 | 0 | 0 | 2009-03-23 | |
redhat9 vsftpd 500 00PS | 852 | 0 | 0 | 2009-03-23 | |
经典:Linux菜鸟入门级命令大全 | 976 | 0 | 0 | 2009-03-23 | |
Linux网络配置命令 | 1305 | 0 | 2 | 2009-03-23 | |
JBoss做成Redhat系统服务 | 735 | 0 | 0 | 2009-03-23 | |
Linux环境下学C语言开发要学些什么 | 1619 | 0 | 0 | 2009-03-23 | |
adsl 的怪事 | 663 | 0 | 0 | 2009-03-23 | |
编译安装glibc | 717 | 0 | 0 | 2009-03-23 | |
Linux系统下搭建网站 | 1529 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。