标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
某公司linux面试问题,给已解答 | 886 | 0 | 0 | 2009-03-23 | |
vim 简单入门教程 | 549 | 0 | 0 | 2009-03-23 | |
偶工作远程一台LINUX机子突然疯了 | 917 | 0 | 0 | 2009-03-23 | |
Linux主机被入侵后的工作 | 595 | 0 | 0 | 2009-03-23 | |
linux caicai个人常用命令 | 675 | 0 | 0 | 2009-03-23 | |
用snmp和mrtg监控linux server | 859 | 0 | 0 | 2009-03-23 | |
Linux系统概念:索引节点 | 817 | 0 | 0 | 2009-03-23 | |
Linux下安装Oracle | 1507 | 0 | 0 | 2009-03-23 | |
Linux文件与目录权限 | 1665 | 0 | 0 | 2009-03-23 | |
Linux命令:改变文件或目录的访问权限 | 1779 | 0 | 1 | 2009-03-23 | |
ipmsg for Linux 安装 | 1037 | 0 | 0 | 2009-03-23 | |
linux下C编程 undefined reference to'exp'问题的解决 | 1194 | 0 | 0 | 2009-03-23 | |
用Kickstart远程安装Linux操作系统的方法 | 1074 | 0 | 0 | 2009-03-23 | |
SUSE10.1在VM安装时No catalog found的解决办法 | 896 | 0 | 0 | 2009-03-23 | |
Linux终端模式下查看电脑的硬件配置信息小技巧 | 827 | 0 | 0 | 2009-03-23 | |
linux入门教程(2) | 377 | 0 | 0 | 2009-03-23 | |
linux 双网卡双网关怎么配置 | 2074 | 0 | 0 | 2009-03-23 | |
linux入门教程(3) | 382 | 0 | 0 | 2009-03-23 | |
Windows到Linux之旅:系列文章概述 | 727 | 0 | 0 | 2009-03-23 | |
Windows到Linux之旅:第2部分.控制台速成班 | 768 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。