C split a string into an array of strings code example Example: split string and create array bash IFS=', ' read -r -a array <<< "$string"