| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| atime, ctime and mtime in Unix filesystems | 868 | 0 | 0 | 2009-03-23 | |
| linux学习进度 | 489 | 0 | 0 | 2009-03-23 | |
| linux下软件包的管理 | 640 | 0 | 0 | 2009-03-23 | |
| linux不能解压rar | 1783 | 0 | 0 | 2009-03-23 | |
| 从零开始学LINUX(一) | 816 | 0 | 0 | 2009-03-23 | |
| AS2.1+backuppc | 1055 | 0 | 0 | 2009-03-23 | |
| Root logins are not allowed 的问题解决 | 850 | 0 | 0 | 2009-03-23 | |
| linux下安全管理 | 596 | 0 | 0 | 2009-03-23 | |
| Linux下快速搭建ntp时间同步服务器 | 1058 | 0 | 0 | 2009-03-23 | |
| iptables 防火墙 | 968 | 0 | 0 | 2009-03-23 | |
| 个性化设置你的linux环境 | 781 | 0 | 0 | 2009-03-23 | |
| Linux下的搜索工具find基本用法 | 495 | 0 | 0 | 2009-03-23 | |
| linux 下一条命令查出arp | 430 | 0 | 0 | 2009-03-23 | |
| linux根目录下各目录的功能 | 560 | 0 | 0 | 2009-03-23 | |
| AS4+Raid | 807 | 0 | 0 | 2009-03-23 | |
| 浅析linux内核中的idr机制 | 1318 | 0 | 0 | 2009-03-23 | |
| 可以使用如下方法建立snapshot target的逻辑设备 | 2479 | 0 | 1 | 2009-03-23 | |
| TCP-IP原理与基础以及在Linux上的实现 | 770 | 0 | 0 | 2009-03-23 | |
| Linux十大高级安全管理技巧 | 705 | 0 | 0 | 2009-03-23 | |
| 如何让apache支持3gp下载 | 861 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。