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
;
Use the set built-in to load up the $@ array:
set
$@
IN="bla@some.com;john@home.com" IFS=';'; set $IN; IFS=$' \t\n'
Then, let the party begin:
echo $# for a; do echo $a; done ADDR1=$1 ADDR2=$2