Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

EDSTR

ED COMMANDS

EDSTREAM COMMAND SUMMARY                           83/08/18


                     SUMMARY OF EDSTREAM COMMANDS

  ADDRESSES

  17       a decimal number
  .        the current line
  $        the last line of the file
  /pat/    search forward for line containing pat
  \pat\    search backward for line containing pat
  line+n   n lines forward from line
  line-n   n lines backward from line


  DEFAULTS

  (.)      use current line
  (.+1)    use the next line
  (.,.)    use current line for both line numbers
  (1,$)    use all lines


  COMMANDS

  (.)      A              Append text after line (text follows)
  (.,.)    C              Change text (text follows)
  (.,.)    D              Delete text
  (.)      I              Insert text before line (text follows)
  (.,.)    P              Print text (can be appended to other commands)
  (.)      R file         Read file, appending after line
  (.,.)    S/pat/new/GP   Substitute new for leftmost pat (G implies all
                           occurrences)

  (1,$)    W file         Write file, leave current text unaltered (if no
                           file is specified, write to current filename)

  (.)      =[P]           Print line number, current line


  ARGUMENTS

  $n       Write to/read from the nth temporary buffer


RELATED TOPICS

  More information is available.  Type:

  - HELP EDSTR
    for details about using the Shell command EDSTR.

  - HELP ED COMMANDS
     for detailed information about each of the commands summarized above.  (The
    EDSTR commands are a subset of the ED commands.)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026