how to split string in bash script code example
Example 1: split string and create array bash
IFS=', ' read -r -a array <<< "$string"
Example 2: split bash string
IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
IFS=', ' read -r -a array <<< "$string"
IN="[email protected];[email protected]"
arrIN=(${IN//;/ })