Branching Commands

Command

Action

b

Branch to label or to end of script.

t

Same as b, but branch only after substitution.

T

Same as t, but branch only if no successful substitutions.

:label

Label branched to by t or b.

Get Linux in a Nutshell, 6th 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.