标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux 下应用putty软件修改中文字体 | 829 | 0 | 0 | 2009-03-23 | |
linux ”我的草稿“ | 756 | 0 | 0 | 2009-03-23 | |
LINUX 网卡驱动下载 | 1347 | 0 | 0 | 2009-03-23 | |
[Ubuntu 7.10]3D-Desktop:超酷的Linux 3D桌面切换器 | 1663 | 0 | 0 | 2009-03-23 | |
几个查看进程及日志的命令 | 1801 | 0 | 0 | 2009-03-23 | |
linux文件系统基础 | 348 | 0 | 0 | 2009-03-23 | |
需要在linux中整理磁盘碎片吗 | 883 | 0 | 0 | 2009-03-23 | |
堪称Linux系统管理的圣经:《linux系统技术手册》 | 1094 | 0 | 0 | 2009-03-23 | |
4月第2周回顾:Linux利好不断 微软补丁惹麻烦 | 921 | 0 | 0 | 2009-03-23 | |
Linux内核源码结构 | 992 | 0 | 0 | 2009-03-23 | |
iptables | 1237 | 0 | 1 | 2009-03-23 | |
Linux下Shell基础知识深入浅出 | 635 | 0 | 0 | 2009-03-23 | |
Linux 字体微调 | 1155 | 0 | 0 | 2009-03-23 | |
Linux下的Apache和PHP安全设置 | 2074 | 0 | 0 | 2009-03-23 | |
Linux Fedora Core 6 Install | 1233 | 0 | 0 | 2009-03-23 | |
?úlinux???′μ?êó£¨×a£? | 1103 | 0 | 0 | 2009-03-23 | |
Linux的目录说明 | 1019 | 0 | 0 | 2009-03-23 | |
羊坊店维护心得 | 1376 | 0 | 0 | 2009-03-23 | |
Ubuntu8.04 Server 全配置指南 (前言) | 863 | 0 | 0 | 2009-03-23 | |
Ubuntu8.04 TFTP Server Configuration | 2346 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。