| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| Windows下查看suse linux reiserfs系统分区 | 976 | 0 | 0 | 2009-03-23 | |
| Linux认证复习题100道含答案 | 8669 | 0 | 0 | 2009-03-23 | |
| 如何在DOS/Windows和Linux/Unix之间进行文件格式转换? | 987 | 0 | 0 | 2009-03-23 | |
| GNU源码安装借用YUM排除故障 | 780 | 0 | 0 | 2009-03-23 | |
| Linux聊天工具 | 1022 | 0 | 0 | 2009-03-23 | |
| 不能进入图形界面问题一则 | 1550 | 0 | 0 | 2009-03-23 | |
| Linux系统管理完全手册 | 1413 | 0 | 0 | 2009-03-23 | |
| Linux下软件安装详解(转) | 766 | 0 | 0 | 2009-03-23 | |
| linux分区 | 701 | 0 | 0 | 2009-03-23 | |
| 浅谈Linux后门技术及实践 | 659 | 0 | 0 | 2009-03-23 | |
| Linux入侵检测 | 822 | 0 | 0 | 2009-03-23 | |
| linux signal()函数原型 | 1355 | 0 | 0 | 2009-03-23 | |
| 使用IP链建立Linux防火墙 | 1625 | 0 | 0 | 2009-03-23 | |
| 安装Linux无盘工作站方案 | 1121 | 0 | 0 | 2009-03-23 | |
| wget 使用技巧 | 1453 | 0 | 0 | 2009-03-23 | |
| 11月第3周回顾:45纳米时代来临 Linux利好不断 | 853 | 0 | 0 | 2009-03-23 | |
| postfix与qmail以及sendmail的优缺点(转) | 1985 | 0 | 0 | 2009-03-23 | |
| 【Redhat官方文件】红帽认证工程师及红帽认证技师常见问题解答 | 975 | 0 | 0 | 2009-03-23 | |
| linux环境下使用XFS文件系统 | 963 | 0 | 0 | 2009-03-23 | |
| yum详解 | 2002 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。