sed — Branching

Flow control and scripting — labels, branching, conditional loops, and script files.

Page Description

Flow Control

Labels, b/t branching, loops, :a;N;$!ba, block processing, -f script files, nth match