Stopping Early: break, continue and Counters

A counter or running total is a variable a loop adds to each time round with $(( )); continue skips the rest of one pass and goes on with the next item, and break leaves the loop early.

Updated

Cheat sheet for the lesson Stopping Early: break, continue and Counters: A counter or running total is a variable a loop adds to each time round with $(( )); continue skips the rest of one pass and goes on with the next item, and break leaves the loop early.
Category
Bash
Level
Apprentice
Tags
break, continue, linux, loop-counter, shell-script, unix