| Extracted from Pike v7.8 release 866 at 2016-04-05.

[Top]
Tools
Tools.sed

# Module Tools.sed

Description

  edit commands supported:

       <firstline>,<lastline><edit command>
          ^^ numeral (17) ^^
             or relative (+17, -17)
             or a search regexp (/regexp/)
             or multiple (17/regexp//regexp/+2)

  Command | Action
  D | Delete first line in space
  G | Insert hold space
  H | Append current space to hold space
  P | Print current data
  a<string> | Insert
  c<string> | Change current space
  d | Delete current space
  h | Copy current space to hold space
  i<string> | Print string
  l | Print current space
  p | Print first line in data
  q | Quit evaluating
  s/regexp/with/x | Replace
  y/chars/chars/ | Replace chars

  where line is numeral, first 'line'==0