var[@] 数组的一个元素 var=("first" "second" "three") for str in ${var[@]}; do echo $str done 转载于:https://www.cnblogs.com/yaocai/p/10343083.html