Answers for "split string and create array bash"

1

split string and create array bash

my_array=($(echo $string | tr "," "\n"))
Posted by: Guest on April-17-2020
1

split bash string

IN="[email protected];[email protected]"
arrIN=(${IN//;/ })
Posted by: Guest on April-29-2020
1

split string and create array bash

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

Code answers related to "split string and create array bash"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language