标签:
declare -A animals=(["moo"]="cow" ["woof"]="dog") for sound in "${!animals[@]}"; do echo "$sound - ${animals["$sound"]}"; done
use dict in bash
原文地址:http://www.cnblogs.com/lasclocker/p/4550935.html