View original Gist on GitHub
IN="bla@some.com;john@home.com" arrIN=(${IN//;/ }) echo "${arrIN[@]}" # foo bar echo $arrIN # foo