Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

EDSTR/COMMANDS                      Aegis                       EDSTR/COMMANDS



NAME
     edstr/commands - edstream command summary

DESCRIPTION
                          SUMMARY OF EDSTREAM COMMANDS

       ADDRESSES

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


       DEFAULTS

       ()       (no address) 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


SEE ALSO
     edstr
     for details about using the shell command edstr.

     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