

EDIN (1)                     7/2/80                      EDIN (1)


NAME
       edin - in-core text editor

SYNOPSIS
       edin [file]

DESCRIPTION
       Edin  is  a  simple version of the text editor which keeps
       the entire file  in  a  buffer  in  core  (as  opposed  to
       storing  it  on  a scratch file).  It thus can handle only
       small files.  It is included only as  a  temporary  editor
       to  use  while  implementing  the  full-fledged version of
       ed. 

FILES
       None

SEE ALSO
       ed (or edit), sedit, find, ch
       Kernighan and Plauger's "Software Tools", pages 163-208

DIAGNOSTICS
       file size exceeded
            printed whenever the  maximum  number  of  characters
            allowed  has  been exceeded.  The size of the in-core
            buffer is determined by the MAXBUF definition in  the
            source code. 

       The  error message "?" is printed whenever an edit command
       fails or is not understood. 

AUTHORS
       Straight from "Software Tools", with few changes and  very
       little testing. 

CHANGES
       This  editor  is  basically  the  one provided in the book
       except that it has been taught  to  read  both  upper  and
       lower  case commands and it prints a message when the file
       is too big to fit in the buffer. 

BUGS/DEFICIENCIES
       Who knows.... 















                               -1-




EDIN (1)                     7/2/80                      EDIN (1)


                         COMMAND SUMMARY

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
              e file          discard current text, enter file,
                              remember file name
              f               print file name
              f file          remember file name
      (.)     i               insert text before line (text follows)
      (.,.)   m line3         move text to after line3
      (.,.)   p               print text (can be appended to other commands)
              q               quit
      (.)     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 "file" isn't given, write to current
                              filename)
      (.)     =p              print line number, current line
      (.+1)   <CR>            print next line
      (1,$)   g/pat/command   do command on lines containing pat
                              (except a, c, i, q commands)
      (1,$)   x/pat/command   do command on lines not containing pat
                              (except a, c, i, q commands)
















                               -2-


