| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 简单介绍一下linux下的sendmail邮件服务器 | 2386 | 0 | 0 | 2009-07-11 | |
| Linux安全配置步骤简述 | 1850 | 0 | 0 | 2009-07-10 | |
| VMware ESXi中安装Vyatta实现虚拟路由器 | 3804 | 0 | 0 | 2009-07-10 | |
| 我不是红旗LINUX的托 | 1823 | 0 | 0 | 2009-07-09 | |
| Asialinux3 for openwebmail配置 | 1747 | 0 | 0 | 2009-07-09 | |
| openwebmail 配置笔记 | 2383 | 0 | 0 | 2009-07-08 | |
| linux命令--grep | 1989 | 0 | 0 | 2009-07-08 | |
| linux系统:添加新磁盘实施磁盘空间配额 | 2389 | 0 | 0 | 2009-07-07 | |
| linux管理员手册 | 2159 | 1 | 0 | 2009-07-07 | |
| Linux爆本地提权漏洞 请立即更新udev程序 | 2323 | 0 | 0 | 2009-07-06 | |
| linux 下新加入一个硬盘的方法 | 2108 | 0 | 0 | 2009-07-05 | |
| linux系统:简单的输入法替换 | 2072 | 0 | 0 | 2009-07-04 | |
| Linux下vsftpd的安全化的配置 | 1792 | 0 | 0 | 2009-07-04 | |
| linux 下 MySQL源码包的安装 | 2361 | 0 | 0 | 2009-07-03 | |
| linux密码管理 | 2419 | 0 | 0 | 2009-07-03 | |
| linux seq更为详细的用法 | 2459 | 0 | 0 | 2009-07-02 | |
| linux下的磁盘配额简介暨 linux下加挂硬盘续 | 2349 | 0 | 0 | 2009-06-20 | |
| linux 的基本命令 | 2210 | 0 | 0 | 2009-06-20 | |
| linux系统:开放源代码应用程序的编译与安装 | 2368 | 0 | 0 | 2009-06-19 | |
| 我喜欢的Linux发行版 | 2487 | 0 | 0 | 2009-06-19 |
朋友你好!
我刚开始搞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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。