티스토리 뷰

공부

[Sh] do ~ while

seunggabi 승가비 2020. 4. 18. 17:56
while true; do
  ...
  condition || break
done

https://unix.stackexchange.com/questions/60098/do-while-or-do-until-in-posix-shell-script

 

do...while or do...until in POSIX shell script

There is the well known while condition; do ...; done loop, but is there a do... while style loop that guarantees at least one execution of the block?

unix.stackexchange.com

 

'공부' 카테고리의 다른 글

[Sh] date  (0) 2020.04.18
[Sh] check detect OS  (0) 2020.04.18
[Sh] do ~ while  (0) 2020.04.18
[oozie] data in coordinator  (0) 2020.04.18
[Presto] int to hex  (0) 2020.04.17
[Sh] date loop  (0) 2020.04.17
댓글
댓글쓰기 폼