break - Exit from for, while, or until loop

Synopsis

break[ n ]

Description

You can use break to exit from the smallest enclosing for, while, or until loop or from the nth enclosing loop. Processing resumes with the command immediately following the loop.

Options

None.

Operands

The value of n must be greater than or equal to 1.

Exit Status

Related information