码迷,mamicode.com
首页 > 系统相关 > 详细

shell 使用字典

时间:2015-08-25 12:33:15      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:shell

#!/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

shell 使用字典

标签:shell

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!