Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. sed -e 's/foo/bar/; t; s/bar/foo/'
  2.  
  3. sh-3.2$ printf 'foonbarn' | sed -e 's/foo/bar/; t; s/bar/foo/'
  4. sed: 2: "s/foo/bar/; t; s/bar/foo/
  5. ": undefined label '; s/bar/foo/'
  6.  
  7. [2addr]t [label]
  8. Branch to the ``:'' function bearing the label if any substitutions
  9. have been made since the most recent reading of an input line or
  10. execution of a ``t'' function. If no label is specified, branch to
  11. the end of the script.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement