In a Bash script I would like to split a line into pieces and store them in an array.
The line:
Paris, France, Europe
I would like
t="one,two,three" a=($(echo "$t" | tr ',' '\n')) echo "${a[2]}"
Prints three