| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 最全面的关于LINUX与UNIX下的dd命令详解 | 1407 | 0 | 0 | 2009-03-23 | |
| linux 上 java 的安装 | 1595 | 0 | 0 | 2009-03-23 | |
| Linux Desktop Entry 文件深入解析 | 1393 | 0 | 0 | 2009-03-23 | |
| Linux各种文件系统(ext3,ReiserFS,jfs,xfs)的性能 | 1717 | 0 | 0 | 2009-03-23 | |
| 在LINUX环境中,哪种文件系统存储更安全? | 2063 | 0 | 0 | 2009-03-23 | |
| 在Redhat Enterprise Linux5下安装XFS文件系统手记 | 2473 | 0 | 0 | 2009-03-23 | |
| linux下使用mount挂着网络磁盘 | 3448 | 0 | 0 | 2009-03-23 | |
| [RHEL5企业级Linux服务攻略]--第5季 Sendmail服务全攻略之高级配置 | 1075 | 0 | 0 | 2009-03-23 | |
| linux 上 Tomcat 安装 | 1311 | 0 | 0 | 2009-03-23 | |
| linux脚本检查外部服务器端口状态 | 2907 | 0 | 0 | 2009-03-23 | |
| Linux下基于端口的服务检查脚本 | 2010 | 0 | 0 | 2009-03-23 | |
| 列出文件命令ls快速掌握 | 2583 | 0 | 0 | 2009-03-23 | |
| LAMP | 907 | 0 | 0 | 2009-03-23 | |
| Linux上FTP服务器的搭建 | 1814 | 0 | 0 | 2009-03-23 | |
| Redhat linux 5 Server相关介绍 | 1188 | 0 | 0 | 2009-03-23 | |
| linux用户和组帐户管理 | 2422 | 0 | 0 | 2009-03-23 | |
| [linux|Ubuntu]安装杂牌扫描仪-方正F5580 | 1915 | 0 | 0 | 2009-03-23 | |
| 我与linux的第一次亲密接触,摸索着安装linux | 1568 | 0 | 0 | 2009-03-23 | |
| linux可设置ip协议参数说明 | 1265 | 0 | 0 | 2009-03-23 | |
| RHCE考试Troubleshooting中,linux 系统不能开机或可能出现的错误情况 | 1786 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。