| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| rsync同步后目录大小不同 | 2356 | 0 | 0 | 2009-04-30 | |
| 重置Linux root密码一例 | 2085 | 0 | 0 | 2009-04-30 | |
| 找回LINUX ROOT用户的密码 | 1482 | 0 | 0 | 2009-04-30 | |
| CentOS 5 上安装 eGroupWare | 1192 | 0 | 0 | 2009-04-29 | |
| linux加载NTFS和FAT32分区详述 | 1800 | 0 | 0 | 2009-04-29 | |
| Linux系统新手学习的11点建议 | 1399 | 0 | 0 | 2009-04-28 | |
| Netpbm:命令方式的图像转换程序 | 1017 | 0 | 0 | 2009-04-28 | |
| Linux 服务器集群系统实现方案详解 | 911 | 0 | 0 | 2009-04-28 | |
| VMware 下linux系统的 VMware tools 工具的安装方法 | 1627 | 0 | 0 | 2009-04-27 | |
| linux 文件颜色的含义 | 1667 | 0 | 0 | 2009-04-24 | |
| 绝对常用的Linux命令 | 1157 | 0 | 0 | 2009-04-24 | |
| 关于Linux系统的运行级别 | 1084 | 0 | 0 | 2009-04-23 | |
| 解析Linux操作系统文件目录 | 1044 | 0 | 0 | 2009-04-23 | |
| Jboss的安装 | 1513 | 0 | 0 | 2009-04-22 | |
| QEMU 环境下Gentoo 启动问题 | 823 | 0 | 0 | 2009-04-22 | |
| RH033 Unit16 The Linux Filesystem In-Depth | 811 | 0 | 0 | 2009-04-22 | |
| [RHEL5企业级Linux服务攻略]--第9季 Squid服务全攻略之高级配置 | 1063 | 0 | 0 | 2009-04-21 | |
| Linux下使用md5sum查看文件及程序是否被修改 | 950 | 0 | 0 | 2009-04-21 | |
| Linux下搭建DHCP服务器 | 905 | 0 | 0 | 2009-04-20 | |
| 在NIS服务器上实验密码验证功能 | 921 | 0 | 0 | 2009-04-20 |
朋友你好!
我刚开始搞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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。