While Loop
Loop on condition.
💡 THINK OF IT LIKE…
▸ YOUR TURN
Write: while [ $x -gt 0 ]; do x=$((x-1)); done
Tab indent · Shift+Tab outdent · ⌘/Ctrl + Enter submit · auto-pairs ( [ { " '
Loop on condition.
Write: while [ $x -gt 0 ]; do x=$((x-1)); done