just simple question.
i have array:
array=("1 2 3" "4 5 6")
if do:
echo ${array[0]} echo ${array[1]}
1 2 3 or 4 5 6 shown.
however, if do:
for iter in ${array[@]} echo $iter done
the shown value not expected.... can give me right way use it?
quotation need:
for iter in "${array[@]}"; echo "$iter" done
Comments
Post a Comment