标题 | 阅读 | 评论 | 转发 | 发布日期 | |
---|---|---|---|---|---|
linux的分区 | 847 | 0 | 0 | 2009-03-23 | |
linux分区格式 | 1468 | 0 | 0 | 2009-03-23 | |
Linux各发行版本 优缺点 简介 | 773 | 0 | 0 | 2009-03-23 | |
Linux下分区工具 | 918 | 0 | 0 | 2009-03-23 | |
原创 Red Hat Enterprise Linux 5 安装手册 | 794 | 0 | 0 | 2009-03-23 | |
linux top命令 | 1328 | 0 | 0 | 2009-03-23 | |
cp ——linux拷贝命令 | 1771 | 0 | 0 | 2009-03-23 | |
linux文件系统基础知识 | 533 | 0 | 0 | 2009-03-23 | |
在Redhat Linux AS 4下实现软件RAID5 | 1146 | 0 | 0 | 2009-03-23 | |
Linux关机命令详解 | 1116 | 0 | 0 | 2009-03-23 | |
linux中PS命令使用详解 | 494 | 0 | 0 | 2009-03-23 | |
为linux增加新的分区 | 1557 | 0 | 0 | 2009-03-23 | |
linux下这样更改主机名 | 1182 | 0 | 0 | 2009-03-23 | |
用Eclipse进行C语言编程 | 1833 | 0 | 0 | 2009-03-23 | |
080725 工作记录 监控进程占用cpu前五脚本 | 1933 | 0 | 0 | 2009-03-23 | |
linux pdf | 1200 | 0 | 0 | 2009-03-23 | |
linux加入自动ping | 1468 | 0 | 0 | 2009-03-23 | |
在Linux下搭建Web应用环境 | 856 | 0 | 0 | 2009-03-23 | |
硬盘安装 RedHat9(dos安装) | 948 | 0 | 0 | 2009-03-23 | |
linux make使用技巧 | 2521 | 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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。