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