--- Bash的数组遍历

 
1.  读入:  read -a A < <(echo a b c d e f g)
 2. 遍历输出:  echo "${A[@]}"

原文地址:https://www.cnblogs.com/bzhao/p/6206977.html