| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 配置一个完美的linux工作环境 | 1090 | 0 | 0 | 2009-03-23 | |
| CentOS+Apache+Mysql+Php安装及优化配置小记 | 1199 | 0 | 0 | 2009-03-23 | |
| tar linux 命令说明 | 1100 | 0 | 0 | 2009-03-23 | |
| RHEL4上安装基于postfix的全功能邮件服务器 | 1527 | 0 | 0 | 2009-03-23 | |
| Gentoo 2007 安装指南 | 1262 | 0 | 0 | 2009-03-23 | |
| CentOS+Apache+Mysql+Php安装及优化配置小记 | 1006 | 0 | 0 | 2009-03-23 | |
| 值得深究的Linux文件系统 | 1151 | 0 | 0 | 2009-03-23 | |
| 在Linux下为系统用户建立个人主页 | 1827 | 0 | 0 | 2009-03-23 | |
| Linux下oracle 9i图文安装一 | 867 | 0 | 0 | 2009-03-23 | |
| 细述 wxWindows--精简版 | 1114 | 0 | 0 | 2009-03-23 | |
| Linux操作系统文件系统基础详解 | 396 | 0 | 0 | 2009-03-23 | |
| Linux系统分区 | 1599 | 0 | 0 | 2009-03-23 | |
| linux的分区 | 884 | 0 | 0 | 2009-03-23 | |
| linux分区格式 | 1518 | 0 | 0 | 2009-03-23 | |
| Linux各发行版本 优缺点 简介 | 837 | 0 | 0 | 2009-03-23 | |
| Linux下分区工具 | 948 | 0 | 0 | 2009-03-23 | |
| 原创 Red Hat Enterprise Linux 5 安装手册 | 836 | 0 | 0 | 2009-03-23 | |
| linux top命令 | 1348 | 0 | 0 | 2009-03-23 | |
| cp ——linux拷贝命令 | 1783 | 0 | 0 | 2009-03-23 | |
| linux文件系统基础知识 | 543 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。