Answers for "read a string to array bash"

2

string to array bash

IFS='$SEP' read -r -a ARRAY <<< "$STRING"
Posted by: Guest on April-22-2021
1

bash split string into array

IFS=', ' read -r -a array <<< "$string"
Posted by: Guest on April-17-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language