标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux磁盘维护命令 | 735 | 0 | 0 | 2009-03-23 | |
LAMP全新安装 Linux+Apache+MySQL+PHP+phpMyadmin+Zend | 720 | 0 | 0 | 2009-03-23 | |
Linux下软件的安装与卸载 | 604 | 0 | 0 | 2009-03-23 | |
关于在linux系统下卸载软件的问题 | 1213 | 0 | 0 | 2009-03-23 | |
Linux基本操作命令 | 650 | 0 | 0 | 2009-03-23 | |
在linux下卸载软件包 | 708 | 0 | 0 | 2009-03-23 | |
如何从硬盘安装Linux大全 | 2101 | 0 | 0 | 2009-03-23 | |
重装windows,linux无法引导,怎么解决? | 2078 | 0 | 0 | 2009-03-23 | |
Linux系统和Windows双系统共存删除Linux后引发的后果 | 1319 | 0 | 0 | 2009-03-23 | |
Linux RH9 下安装mplayer | 647 | 0 | 0 | 2009-03-23 | |
vmware 网络配置实例二 windows xp host + linux guest | 885 | 0 | 0 | 2009-03-23 | |
各种系统下vmware tools的安装 | 1452 | 0 | 0 | 2009-03-23 | |
Linux操作系统上安装Mplayer播放器的方法 | 791 | 0 | 0 | 2009-03-23 | |
上网客户端认证软件(Linux)下载 | 858 | 0 | 0 | 2009-03-23 | |
如何从硬盘安装RedHat Linux 9.0 | 1109 | 0 | 0 | 2009-03-23 | |
Linux安装浅析 | 725 | 0 | 0 | 2009-03-23 | |
闲话GRUB | 1301 | 0 | 0 | 2009-03-23 | |
在 Linux 上构建一个 RADIUS 服务器 | 1077 | 0 | 0 | 2009-03-23 | |
linux上网的解决方案-Dr.comlinux下的客户端使用指南 | 1030 | 0 | 0 | 2009-03-23 | |
Linux 技巧:谈 Linux GNU 实用工具兼容性 | 703 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。