shell中数组的应用

 #!/bin/sh
 C=([3]=77 [1]=100 [5]=66)
 echo ${C[5]}

 echo ${C[@]}    #取出所有元素

原文地址:https://www.cnblogs.com/djcsch2001/p/2038196.html