How do I print the array element of a Bash array on separate lines? This one works, but surely there is a better way:
$ my_array=(one two three)
$ for i in ${my_array[@]}; do echo $i; done
one
two
three
Tried this one but it did not work:
$ IFS=$'
' echo ${my_array[*]}
one two three
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…