Next: Extended Commands, Previous: Other Commands, Up: sed scripts [Contents][Index]
sed
gurusIn 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 label for branch commands. In all other respects, a no-op.
b label
Unconditionally branch to label. The label may be omitted, in which case the next cycle is started.
t label
Branch to label only if there has been a successful s
ubstitution
since the last input line was read or conditional branch was taken.
The label may be omitted, in which case the next cycle is started.