标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
Booting ARM Linux | 878 | 0 | 0 | 2009-03-23 | |
Linux内核源代码的阅读和工具介绍 | 1765 | 0 | 0 | 2009-03-23 | |
长篇连载--arm linux演艺(1 to 11) | 861 | 0 | 0 | 2009-03-23 | |
Linux下samba源码安装(非RPM包) | 1587 | 0 | 0 | 2009-03-23 | |
ArmLinux BOOTLOADER全程详解(转载) | 778 | 0 | 0 | 2009-03-23 | |
[RHEL5企业级Linux服务攻略]--第2季 Samba服务全攻略 | 985 | 0 | 0 | 2009-03-23 | |
源码安装vsftp2.0.7 | 969 | 0 | 0 | 2009-03-23 | |
安装MySQL-LINUX | 1637 | 0 | 0 | 2009-03-23 | |
在VMWare下LINUX中安装VMTool及共享文件夹 | 2153 | 0 | 0 | 2009-03-23 | |
Linux项目方案报告 | 775 | 0 | 0 | 2009-03-23 | |
构建 MySQL 数据库服务器 | 740 | 0 | 0 | 2009-03-23 | |
我的linux学习环境的安装过程 | 588 | 0 | 0 | 2009-03-23 | |
linux console下的使用SMTP发送邮件 | 851 | 0 | 0 | 2009-03-23 | |
Linux内存管理 | 657 | 0 | 0 | 2009-03-23 | |
fstab文件详解 | 648 | 0 | 0 | 2009-03-23 | |
linux 卷标设置与管理 | 1430 | 0 | 0 | 2009-03-23 | |
Linux磁盘管理--fstab文件的修改 | 743 | 0 | 0 | 2009-03-23 | |
Linux系统下挂载Windows分区 | 839 | 0 | 0 | 2009-03-23 | |
12款Linux下浏览器大阅兵 | 714 | 0 | 0 | 2009-03-23 | |
Linux下三大FTP客户端评测 | 1179 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。