| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 开源的Linux QQ | 671 | 0 | 0 | 2009-03-23 | |
| linux下ssh使用详解 | 2362 | 0 | 0 | 2009-03-23 | |
| 退出linux的图形界面的方法 | 898 | 0 | 0 | 2009-03-23 | |
| 实战Ubuntu下使用网上银行专业版 | 709 | 0 | 0 | 2009-03-23 | |
| Silverlight for Linux | 894 | 0 | 0 | 2009-03-23 | |
| 国家Linux技术水平认证项目正式启动 | 801 | 0 | 0 | 2009-03-23 | |
| Linux Date & Time | 1260 | 0 | 0 | 2009-03-23 | |
| Silverlight for linux 和 DLR(Dynamic Language Runtime) | 659 | 0 | 0 | 2009-03-23 | |
| Windows下以WinGrub引导硬盘安装linux的方法 | 1530 | 0 | 0 | 2009-03-23 | |
| 安装linux遇到的问题 | 839 | 0 | 0 | 2009-03-23 | |
| 新手学堂:配置自定义的Linux VIM编辑器 | 680 | 0 | 0 | 2009-03-23 | |
| linux 基础中的基础!! | 395 | 0 | 0 | 2009-03-23 | |
| linux目录 | 741 | 0 | 0 | 2009-03-23 | |
| 一次消无声息的系统被入侵经历 | 821 | 0 | 0 | 2009-03-23 | |
| 如何在Linux下加载移动硬盘和光驱 | 1109 | 0 | 0 | 2009-03-23 | |
| 专家推荐:学习Linux系统的九条忠告 | 282 | 0 | 0 | 2009-03-23 | |
| Linux中如何查看服务及监听端口 | 1934 | 0 | 1 | 2009-03-23 | |
| 在Linux系统下如何增加一个新的系统用户 | 1068 | 0 | 0 | 2009-03-23 | |
| 每天备份 mysql 数据库的脚本 | 667 | 0 | 0 | 2009-03-23 | |
| linux基础 转 | 310 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。