티스토리 뷰
728x90
arr=(one two three)
for i in ${arr[@]}
do
echo $i;
done
https://stackoverflow.com/questions/15691942/print-array-elements-on-separate-lines-in-bash
Print array elements on separate lines in Bash?
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...
stackoverflow.com
728x90
'공부' 카테고리의 다른 글
java.lang.NoClassDefFoundError: javax/servlet/Filter (0) | 2022.05.22 |
---|---|
[JavaScript] Array.isArray() (0) | 2022.05.22 |
[Spring] cloud config server `enable=false` off (0) | 2022.05.22 |
[YAML] null `field: ~` (0) | 2022.05.22 |
'schedule_interval'의 변신, 그리고 'execution_date'의 종말 (0) | 2022.05.14 |
댓글