Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10504425
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

博文列表
标题:
标题 阅读 评论 转发 发布日期
Fedora 10下Fetion安装 754 0 0 2009-03-23
解决本地linux 作为x server的问题 1081 0 0 2009-03-23
在linux上增加swap交换空间 1043 0 0 2009-03-23
linux 启动 702 0 0 2009-03-23
linux日志 565 0 0 2009-03-23
mdadm 788 0 0 2009-03-23
LAMP安装全过程 766 0 0 2009-03-23
SuSe Linux Enterprise Server 10 With Sp2 安装过程图解 792 0 0 2009-03-23
linux在VM下分辨率的问题 867 0 0 2009-03-23
postfix 732 0 0 2009-03-23
named 747 0 0 2009-03-23
CentOS 5 源, 1337 0 0 2009-03-23
squid端口8080+acl+用户验证 1912 0 0 2009-03-23
查看linux版本信息 757 0 0 2009-03-23
解决sendmail启动慢的问题 882 0 0 2009-03-23
Linux下增加Swap区 769 0 0 2009-03-23
Linux多播技术的使用和编程 891 0 0 2009-03-23
本地时间与UTC(世界协调时间)的转换 2794 0 0 2009-03-23
Linux 用户(user)和用户组(group)管理概述 611 0 0 2009-03-23
linux snmp配置 931 0 0 2009-03-23
给主人留下些什么吧!~~

ehlopxp2014-01-10 10:34

回复  |  举报

ehlopxp2014-01-10 10:34

回复  |  举报

hmrit2013-10-28 10:17

你好  请问一下  
为什么我的linux下一直安装dns不能成功   能否帮忙解决一下

回复  |  举报

2011-11-28 13:03

朋友你好!
我刚开始搞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语句,可要是不能这样
我要实现程序跳转(也就是查了以个分数等级后,不退出程序还能继续查询第二个)
该用什么方法实现。
小弟在此先行叩谢了。

回复  |  举报
留言热议
请登录后留言。

登录 注册