shell split string into array by hyphen code example Example: split bash string IN="[email protected];[email protected]" arrIN=(${IN//;/ })