标签:
[root@slavedb array]# cat a.sh #!/bin/bash array=( freddy freddie tang sheng wei ) for ((i=0;i<${#array[@]};i++));do echo "This is num $i,then content is ${array[$i]}" #$i是下标 done echo "-----------------" echo "array len:${#array[@]}"
标签:
原文地址:http://www.cnblogs.com/tangshengwei/p/5478485.html