标签:com 关联数组 整理 恢复 数组名 index 高亮 consumer ons
---恢复内容开始---
shell高亮显示
echo -e 终端颜色 显示内容 结束后的颜色
\e[1;31m content \e[1;0m
1为设置,0为不设置。
31m 0m为颜色
[ucm@MacBook-Pro testpace]$ echo -e "\e[1;31m consumer huawei com \e[1;0m" consumer huawei com [ucm@MacBook-Pro testpace]$
shell中的关联数组
关联数组
普通数组:只能使用整数作为数组索引
关联数组:可以使用字符串作为数组索引
申明关联数组变量
#declare -A ass_array1
赋值:数组名[索引]=变量值
#ass_array1[index1]=pear
---恢复内容结束---
标签:com 关联数组 整理 恢复 数组名 index 高亮 consumer ons
原文地址:http://www.cnblogs.com/jxdong116/p/6257031.html