| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| linux 简单配置汇总 上 | 1499 | 0 | 0 | 2009-03-23 | |
| redhat5 DHCP | 2489 | 0 | 0 | 2009-03-23 | |
| Linux下使用C/C++访问数据库——SQL Server篇 | 2105 | 0 | 0 | 2009-03-23 | |
| Linux下C语言编程基础知识 | 1315 | 0 | 2 | 2009-03-23 | |
| When Linux Runs Out of Memory | 1492 | 0 | 0 | 2009-03-23 | |
| Linux双网卡绑定 | 1904 | 0 | 0 | 2009-03-23 | |
| RHEL NFS服务的安装及简单配置 !!! | 1749 | 0 | 0 | 2009-03-23 | |
| find 精解 | 1264 | 0 | 0 | 2009-03-23 | |
| 最全面的关于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环境中,哪种文件系统存储更安全? | 2064 | 0 | 0 | 2009-03-23 | |
| 在Redhat Enterprise Linux5下安装XFS文件系统手记 | 2473 | 0 | 0 | 2009-03-23 | |
| linux下使用mount挂着网络磁盘 | 3450 | 0 | 0 | 2009-03-23 | |
| [RHEL5企业级Linux服务攻略]--第5季 Sendmail服务全攻略之高级配置 | 1076 | 0 | 0 | 2009-03-23 | |
| linux 上 Tomcat 安装 | 1311 | 0 | 0 | 2009-03-23 | |
| linux脚本检查外部服务器端口状态 | 2907 | 0 | 0 | 2009-03-23 | |
| Linux下基于端口的服务检查脚本 | 2011 | 0 | 0 | 2009-03-23 | |
| 列出文件命令ls快速掌握 | 2584 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。