标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
Linux 命令全集 | 755 | 0 | 0 | 2009-03-23 | |
转点别人写的给大家看, | 828 | 0 | 0 | 2009-03-23 | |
怎样在LINUX系统下安装MySQL | 927 | 0 | 0 | 2009-03-23 | |
Linux 配置X-manager | 992 | 0 | 0 | 2009-03-23 | |
一切皆有可能——在iPod上安装Linux | 1182 | 0 | 0 | 2009-03-23 | |
RHCT和RHCE考试中必考的内容 | 1042 | 0 | 0 | 2009-03-23 | |
linux下mysql 5.x得到root密码后的另外一种利用方式 | 748 | 0 | 0 | 2009-03-23 | |
Linux考前必读:RHCE考试准备大方向 | 1600 | 0 | 0 | 2009-03-23 | |
挂载LINUX的网卡驱动----英特尔主板 | 1012 | 0 | 0 | 2009-03-23 | |
Linux下root密码恢复 | 769 | 0 | 0 | 2009-03-23 | |
Linux 技巧 | 697 | 0 | 0 | 2009-03-23 | |
linux基礎資料 | 485 | 0 | 0 | 2009-03-23 | |
學習linux的建議 | 259 | 0 | 0 | 2009-03-23 | |
菜鳥學linux | 407 | 0 | 0 | 2009-03-23 | |
[原创]手动配置Ubuntu Linux系列2-网卡的静态IP地址 | 833 | 0 | 0 | 2009-03-23 | |
[原创]手动配置Ubuntu Linux系列1-DHCP客户端 | 1208 | 0 | 0 | 2009-03-23 | |
[原创]手动配置Ubuntu Linux系列4-指定DNS服务器地址 | 845 | 0 | 0 | 2009-03-23 | |
RedHat AS 4安装详解-Linux学习日记 | 876 | 0 | 0 | 2009-03-23 | |
linux dns 设置 小知识 | 892 | 0 | 0 | 2009-03-23 | |
Linux小点滴 | 375 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。