会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
地中海蒲公英
博客园
首页
新随笔
联系
订阅
管理
2014年10月11日
shell的数组操作
摘要: shell中数组的下标默认是从0开始的1。将字符串存放在数组中,获取其长度#!/bin/bashstr="a b --n d"array=($str)length=${#array[@]}echo $lengthfor ((i=0; i<$length; i++))doecho ${array[$i...
阅读全文
posted @ 2014-10-11 11:59 地中海蒲公英
阅读(191)
评论(0)
推荐(0)
公告