| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| redhat9 vsftpd 500 00PS | 906 | 0 | 0 | 2009-03-23 | |
| 经典:Linux菜鸟入门级命令大全 | 993 | 0 | 0 | 2009-03-23 | |
| Linux网络配置命令 | 1324 | 0 | 2 | 2009-03-23 | |
| JBoss做成Redhat系统服务 | 751 | 0 | 0 | 2009-03-23 | |
| Linux环境下学C语言开发要学些什么 | 1627 | 0 | 0 | 2009-03-23 | |
| adsl 的怪事 | 682 | 0 | 0 | 2009-03-23 | |
| 编译安装glibc | 733 | 0 | 0 | 2009-03-23 | |
| Linux系统下搭建网站 | 1538 | 0 | 0 | 2009-03-23 | |
| linux基本网络配置 | 1130 | 0 | 0 | 2009-03-23 | |
| linux的ftp服务详细配置 | 5486 | 0 | 0 | 2009-03-23 | |
| Linux---一天的郁闷与收获 | 801 | 0 | 0 | 2009-03-23 | |
| Linux?μí3??′??¨óò??·t???÷ | 1119 | 0 | 0 | 2009-03-23 | |
| LINUX其他重要服务 | 766 | 0 | 0 | 2009-03-23 | |
| Linux 发行版镜像下载 | 1029 | 0 | 0 | 2009-03-23 | |
| Linux系统下设置网络安全 | 856 | 0 | 0 | 2009-03-23 | |
| Linux性能监控,安全等命令集 | 1494 | 0 | 0 | 2009-03-23 | |
| 某公司linux面试问题,给已解答 | 899 | 0 | 0 | 2009-03-23 | |
| vim 简单入门教程 | 585 | 0 | 0 | 2009-03-23 | |
| 偶工作远程一台LINUX机子突然疯了 | 949 | 0 | 0 | 2009-03-23 | |
| Linux主机被入侵后的工作 | 600 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。