Terms

Body The set of commands executed by a loop.

Infinite loops Loops that execute forever without terminating. See loops.

Iteration A single execution of the body of a loop.

Loops Enable you to execute a series of commands multiple times. Two main types of loops are the while and for loops.

Nested loops When a loop is located inside the body of another loop, it is said to be nested within another loop.

Get Sams Teach Yourself Shell Programming in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.