Programming Commands (sed, a stream editor)
From Get docs
Sed/docs/latest/Programming-Commands
Next: Extended Commands, Previous: Other Commands, Up: sed scripts [Contents][Index]
3.6 Commands for sed gurus
In most cases, use of these commands indicates that you are probably better off programming in something like awk or Perl. But occasionally one is committed to sticking with sed, and these commands can enable one to write quite convoluted scripts.
: label[No addresses allowed.]
Specify the location of
labelfor branch commands. In all other respects, a no-op.b labelUnconditionally branch to
label. Thelabelmay be omitted, in which case the next cycle is started.t labelBranch to
labelonly if there has been a successfulsubstitution since the last input line was read or conditional branch was taken. Thelabelmay be omitted, in which case the next cycle is started.