shell for 循环数组

name=(aa bb)

for ((i=0;i<${#name[*]};i++))
do
   name=${name[i]}
   echo "$name"
done

 

转载于:https://www.cnblogs.com/37yan/p/9166620.html

你可能感兴趣的:(shell for 循环数组)