shell split by line 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"