공부
[Sh] array loop
승가비
2022. 5. 22. 18:15
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