AWK · Lesson 5

Control flow: if, loops, next and exit

Branch with if/else and the ?: operator, loop with while, do-while and for, leave loops with break and continue, and stop input with exit.

Lessons · AWK · Lesson 5 of 10

Control flow: if, loops, next and exit

Branch with if/else and the ?: operator, loop with while, do-while and for, leave loops with break and continue, and stop input with exit.

Illustration for AWK
Branch with if/else and the ?: operator, loop with while, do-while and for, leave loops with break and continue, and stop input with exit.