IT博客汇
  • 首页
  • 精华
  • 技术
  • 设计
  • 资讯
  • 扯淡
  • 权利声明
  • 登录 注册

    SHELL:字典

    Adamhuan发表于 2017-04-25 12:02:27
    love 0

    代码:

    [root@oracle-cluster-3 shell]# cat do_dict.sh 
    declare -A dict_me
    dict_me=([count]="^Count" [query_sample]="^Query sample")
    echo ${!dict_me[*]}
    echo ${dict_me[*]}
    [root@oracle-cluster-3 shell]# 
    [root@oracle-cluster-3 shell]# sh do_dict.sh 
    count query_sample
    ^Count ^Query sample
    [root@oracle-cluster-3 shell]#

    ——————————————————————
    DONE.



沪ICP备19023445号-2号
友情链接