| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| 关于linux的RPM命令 | 878 | 0 | 0 | 2009-03-23 | |
| 剖析Linux系统启动过程--redhat | 921 | 0 | 0 | 2009-03-23 | |
| ewatch linux下的Freebsd-watch | 961 | 0 | 0 | 2009-03-23 | |
| 初学linux做下这些题----多多练习 | 906 | 0 | 0 | 2009-03-23 | |
| 新版mysql+apache+php Linux安装指南 | 808 | 0 | 0 | 2009-03-23 | |
| linux中系统管理随笔 | 879 | 0 | 0 | 2009-03-23 | |
| NIS客户端的高级配置 | 1485 | 0 | 0 | 2009-03-23 | |
| linux下squid服务器的配置 | 1406 | 0 | 0 | 2009-03-23 | |
| Linux下软件安装详解 | 1491 | 0 | 0 | 2009-03-23 | |
| 在linux下安装星际译王 | 1351 | 0 | 0 | 2009-03-23 | |
| Linux入门命令精选 | 1380 | 0 | 0 | 2009-03-23 | |
| LINUX和Redhat (红帽RHCE)学习和视频教程下载大全 | 504 | 0 | 0 | 2009-03-23 | |
| 我想自学Linux,需要从哪些方面学起 | 1308 | 0 | 0 | 2009-03-23 | |
| 一个新手RHCE的酸甜苦辣 | 732 | 0 | 0 | 2009-03-23 | |
| 北大青鸟linux课件出现错误? | 988 | 0 | 0 | 2009-03-23 | |
| linux crontab 详解 | 918 | 0 | 0 | 2009-03-23 | |
| Designing.and.Implementing.Linux.Firewalls.and.QoS | 643 | 0 | 0 | 2009-03-23 | |
| OReilly.Linux.Networking.Cookbook.Nov.2007 | 625 | 0 | 0 | 2009-03-23 | |
| Linux下常用压缩格式的压缩与解压方法 | 1089 | 0 | 0 | 2009-03-23 | |
| Linux自启动设置详解 | 1049 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。