JOIN_PEER=(10 11 12 13)echo${JOIN_PEER[@]}for ch in${JOIN_PEER[@]};doecho$ch len ${#ch}#每个参数的字符长度done
peerslice=${JOIN_PEER[@]:1:2}echo$peerslice
map
declare -A hashmap
hashmap["key"]="value"
hashmap["key2"]="value2"echo"${hashmap["key"]}"for key in${!hashmap[@]};doecho$key;donefor value in${hashmap[@]};doecho$value;doneecho hashmap has ${#hashmap[@]} elements