| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| Linux主机被入侵后的工作 | 842 | 0 | 0 | 2009-03-23 | |
| 学了一早上Linux | 446 | 0 | 0 | 2009-03-23 | |
| Linux 防火墙 | 1233 | 0 | 0 | 2009-03-23 | |
| Linux操作系统12则经典应用技巧 | 944 | 0 | 0 | 2009-03-23 | |
| 解读Linux下的password命令 | 1177 | 0 | 0 | 2009-03-23 | |
| 让别人Ping不通你的Linux | 691 | 0 | 0 | 2009-03-23 | |
| Red Hat Linux 9.0服务器架设全程实录1 | 759 | 0 | 0 | 2009-03-23 | |
| 中小企业自建Linux防火墙 | 1139 | 0 | 0 | 2009-03-23 | |
| linux下分类推荐软件列表 | 885 | 0 | 0 | 2009-03-23 | |
| Red Hat Linux 9.0服务器架设全程实录3 | 432 | 0 | 0 | 2009-03-23 | |
| Red Hat Linux 9.0服务器架设全程实录2 | 786 | 0 | 0 | 2009-03-23 | |
| 黑客之入侵Linux实例 | 1030 | 0 | 0 | 2009-03-23 | |
| linux下必看的60个命令(部分) | 885 | 0 | 0 | 2009-03-23 | |
| 揭开Linux操作系统的Swap交换区之谜 | 646 | 0 | 0 | 2009-03-23 | |
| Linux下光驱的挂载 | 1100 | 0 | 0 | 2009-03-23 | |
| 关于Linux的关机步骤和注意事项 | 404 | 0 | 0 | 2009-03-23 | |
| linux下挂载U盘 | 1225 | 0 | 0 | 2009-03-23 | |
| Linux下随机启动程序介绍 | 615 | 0 | 0 | 2009-03-23 | |
| Linux下安装VMware-gsx-3.2.1 | 2129 | 0 | 0 | 2009-03-23 | |
| windows下远程桌面控制linux | 1237 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。