会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
studytechnology
博客园
首页
新随笔
联系
订阅
管理
2016年11月4日
shell条件判断
摘要: 1、字符串判断 str1 = str2 当两个串有相同内容、长度时为真 str1 != str2 当串str1和str2不等时为真 -n str1 当串的长度大于0时为真(串非空) -z str1 当串的长度为0时为真(空串) str1 当串str1为非空时为真 2、数字的判断 int1 -eq i
阅读全文
posted @ 2016-11-04 15:14 studytechnology
阅读(114)
评论(0)
推荐(0)
公告