I have this string stored in a variable:
IN=\"bla@some.com;john@home.com\"
Now I would like to split the strings by ; delimite
;
If you don't mind processing them immediately, I like to do this:
for i in $(echo $IN | tr ";" "\n") do # process done
You could use this kind of loop to initialize an array, but there's probably an easier way to do it. Hope this helps, though.