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
https://judo0179.tistory.com/122
쉘 스크립트 반복문 사용하기
Shell Loop Types 이번 시간에서는 Unix Shell에서 사용하는 반복문에 대해서 알아본다. 반복은 일련의 명령을 반복할 수 있도록 하는 프로그래밍 도구로서 아래에서 다양한 반복문 종류를 살펴보도록
judo0179.tistory.com
728x90
'공부 (@Deprecated)' 카테고리의 다른 글
| 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 |