bash split string in \n ? code example
Example 1: split bash string
IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
Example 2: bash split variable by delimiter
IFS='|' read -r -a arrayName <<< "$variable"
IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
IFS='|' read -r -a arrayName <<< "$variable"