split variable on character in shell code example Example: bash split variable by delimiter IFS='|' read -r -a arrayName <<< "$variable"