shell 使用字典

时间:2015-08-25 12:31:21   收藏:0   阅读:415

#!/bin/bash
declare -A APPPORT
APPPORT=([zhaocancan]=159****1876)
for key in ${!APPPORT[*]}
do
    echo $key phone is ${APPPORT[$key]}
done


#zhaocancan phone is 159****1876

本文出自 “freeterman” 博客,请务必保留此出处http://myunix.blog.51cto.com/191254/1687620

原文:http://myunix.blog.51cto.com/191254/1687620

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!