定义初始化map
declare -A map=(["100"]="1" ["200"]="2")
输出所有key
echo ${map[@]}
输出key对应的值
echo ${map["100"]}
遍历map
for key in ${!map[@]} do echo ${map[$key]} done