| 标题 | 阅读 | 评论 | 转发 | 发布日期 | |
|---|---|---|---|---|---|
| linux下实现批量重命名 | 937 | 0 | 0 | 2009-03-23 | |
| Linux的磁盘配额 | 472 | 0 | 0 | 2009-03-23 | |
| 加固系统,从端口做起 | 865 | 0 | 0 | 2009-03-23 | |
| no acceptable C compiler found in $PATH | 2309 | 0 | 0 | 2009-03-23 | |
| linux Oracle安装 | 1261 | 0 | 0 | 2009-03-23 | |
| LINUX--修改IP地址 | 772 | 0 | 0 | 2009-03-23 | |
| SSH乱码解决方案 | 836 | 0 | 0 | 2009-03-23 | |
| 使用Active Directory执行Linux客户端身份验证 | 840 | 0 | 0 | 2009-03-23 | |
| 认识三大方便的开源 Linux 防火墙生成器 | 2233 | 0 | 0 | 2009-03-23 | |
| 在RHEL4中配置FTP(vsftp) | 1364 | 0 | 0 | 2009-03-23 | |
| linux小知识 | 820 | 0 | 0 | 2009-03-23 | |
| Linux系统下介质的挂载 | 651 | 0 | 0 | 2009-03-23 | |
| linux计划任务 | 963 | 0 | 0 | 2009-03-23 | |
| 学习Linux必备vi/vim键盘图 | 549 | 0 | 0 | 2009-03-23 | |
| Windows和Linux将被抹杀?俄罗斯程序员幽灵操作系统 | 736 | 0 | 0 | 2009-03-23 | |
| Linux上运行Windows程序 | 462 | 0 | 0 | 2009-03-23 | |
| 解决LINUX下无法自动挂载NTFS文件格式的移动硬盘访问 | 719 | 0 | 0 | 2009-03-23 | |
| 3??§??è?o??§?°linux | 2049 | 0 | 0 | 2009-03-23 | |
| VirtualBox使用技巧 | 2205 | 0 | 0 | 2009-03-23 | |
| linux diff 命令详解 | 1381 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。