Function: burst

Split string into array using SEP as delimiter

USAGE: burst string arrayname [SEP]

burst()
{      
  local string=${1:?} arrayname=${2:-array} IFS=$3
  

If SEP is not supplied, use the last character of $string

  [ -z "$IFS" ] && IFS=${string: -1}
  read -a "$2" <<< "$string"
}