标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
什么是CentOS | 1381 | 0 | 0 | 2009-03-23 | |
修复错误配置fstab文件导致系统无法正常启动 | 819 | 0 | 0 | 2009-03-23 | |
修改Linux的默认支持语 | 802 | 0 | 0 | 2009-03-23 | |
启用APACHE2(Ubuntu下)的USERDIR的功能 | 1212 | 0 | 0 | 2009-03-23 | |
远程安装oracle 10.2.1 for redhat 5.0 2.6.18-53.el5xen | 1356 | 0 | 0 | 2009-03-23 | |
ubuntu apache2配置(转载) | 1329 | 0 | 0 | 2009-03-23 | |
Linux只安装开发工具包默认系统自启动服务及说明 | 957 | 0 | 0 | 2009-03-23 | |
rdesktop远程使用Windows的一些技巧 | 1853 | 0 | 0 | 2009-03-23 | |
cat | 886 | 0 | 0 | 2009-03-23 | |
Linux下如何安装SNMP服务 | 1876 | 0 | 0 | 2009-03-23 | |
Linux下添加新硬盘,分区及挂载 | 7154 | 0 | 7 | 2009-03-23 | |
SuSE Linux 应用与安装 | 1044 | 0 | 0 | 2009-03-23 | |
Linux双域名邮件服务器实战 | 1717 | 0 | 0 | 2009-03-23 | |
在Redhat下安装和使用花生壳来作DDNS | 1109 | 0 | 0 | 2009-03-23 | |
Linux文件特殊属性 | 898 | 0 | 0 | 2009-03-23 | |
Linux文件基本属性 | 832 | 0 | 0 | 2009-03-23 | |
安装Linux过程中的输出窗口解释 | 1258 | 0 | 0 | 2009-03-23 | |
利用Linux或者Windows操作系统做路由器进行网络互连 | 522 | 0 | 0 | 2009-03-23 | |
asmlinkage,Linux i386+源码中常见宏标识tag的定义 | 631 | 0 | 0 | 2009-03-23 | |
Linux OPENSSL服务器 | 911 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。