The code:
arr=()
arr+=( USA,1 )
arr+=( Chile,20 )
for row in ${arr[@]};
do
echo place: ${row%%,*} finished: ${row##*,}
done
With Bash 4.2.46, how would I pass this array "arr" to a function, then receive it in the function and parse it with the for loop?