摘要: Shell脚本——数组 普通数组 [root@wshile ~]# books=(linux shell awk openstack docker) [root@wshile ~]# echo ${books[1]} shell [root@wshile ~]# echo ${books[@]} / 阅读全文
posted @ 2020-05-04 14:44 Wshile 阅读(240) 评论(0) 推荐(0) 编辑
摘要: Shell 间接引用 概述 本人在研究docker官方shell脚本中发现官方一直在使用间接引用,故学习总结,作为己用。 官方脚本示例 此代码是ENV处理代码 # file_env 'MYSQL_ROOT_PASSWORD' file_env() { local var="$1" local fil 阅读全文
posted @ 2020-05-04 08:17 Wshile 阅读(366) 评论(0) 推荐(0) 编辑