Сплит Split Bash
IN="bla@some.com;john@home.com"
arrIN=(${IN//;/ })
Tremendous Enceladus
IN="bla@some.com;john@home.com"
arrIN=(${IN//;/ })
# separator is space
VAR="inforge srl bergamo"
read -r ONE TWO THREE <<< "${VAR}"
echo ${ONE}
echo ${TWO}
echo ${THREE}
# separator is comma
VAR="inforge,srl,bergamo"
IFS="," read -r ONE TWO THREE <<< "${VAR}"
echo "${ONE} ${TWO} ${THREE}"
IFS='|' read -r -a arrayName <<< "$variable"