| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| linux下svn的安装与使用 | 1345 | 0 | 0 | 2009-03-23 | |
| VirtualBox: 如何在Linux下使用Host Interface Networking | 1531 | 0 | 0 | 2009-03-23 | |
| 解决Linux 软件包的依赖关系 | 1172 | 0 | 0 | 2009-03-23 | |
| linux服务之DHCP | 1299 | 0 | 0 | 2009-03-23 | |
| linux下如何实现磁盘配额 | 783 | 0 | 0 | 2009-03-23 | |
| Linux十大高级安全管理技巧 | 439 | 0 | 0 | 2009-03-23 | |
| 遥控Linux的控制台图形界面 | 830 | 0 | 0 | 2009-03-23 | |
| Linux如何加载U盘 | 1179 | 0 | 0 | 2009-03-23 | |
| 当Windows消失了,你该做什么? | 1141 | 0 | 0 | 2009-03-23 | |
| 终于在虚拟机上安装上了LINUX了。 | 854 | 0 | 0 | 2009-03-23 | |
| Linux系统NFS服务器的配置方法 | 1392 | 0 | 0 | 2009-03-23 | |
| EMOS1.3安装后的相关安全设置 | 1321 | 0 | 0 | 2009-03-23 | |
| Linux文件系统:一分钱一分货 | 1454 | 0 | 0 | 2009-03-23 | |
| Linux如何加载U盘(转载) | 775 | 0 | 0 | 2009-03-23 | |
| linux 备份还原(基于kistart ,rsync) | 495 | 0 | 0 | 2009-03-23 | |
| 安装“ubuntu-8.04-server”(下) | 1011 | 0 | 0 | 2009-03-23 | |
| 安装“ubuntu-8.04-server”(中) | 1119 | 0 | 0 | 2009-03-23 | |
| linux Firefox汉化 | 800 | 0 | 0 | 2009-03-23 | |
| 安装和使用Backup Exec 12.5 Remote Media Agent | 1691 | 0 | 0 | 2009-03-23 | |
| linux实用方法 | 1506 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。