RosettaCodeData/Task/Loops-Do-while/UNIX-Shell/loops-do-while-3.sh

5 lines
63 B
Bash

for ((val=1;;val++)) {
print $val
(( val % 6 )) || break
}