Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
split string and create array bash
zoom13ie
Programming language:
Whatever
2021-07-19 08:20:35
0
Q:
split string and create array bash
Joseph Huang
Code:
Whatever
2021-07-03 04:41:33
IFS=
', '
read
-r -a
array
<<< "$string"
1
chiliNUT
Code:
Whatever
2021-01-26 00:03:24
my_array
=($(echo
$string
| tr
","
"\n"
))
0
Tags
string
array
create
Related
bash for loop string array
split string into lines
separate words in lines bash
Loop through an array of strings in Bash
bash scripting string comparison
concatenate strings bash
split bash string
New to Communities?
Join the community