home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / elvis / Docs / virecover < prev   
Encoding:
Text File  |  1989-12-31  |  1.3 KB  |  29 lines

  1. Virecover is a program which extracts the most recent version of a text file
  2. from a temporary file in /usr/tmp.
  3.  
  4. When you edit a file with Elvis, only about 5K bytes of the file are stored
  5. in RAM; the rest is stored in a file in /usr/tmp.  This allows you to edit
  6. files larger than a process' data space.  It also plays a big part in the
  7. way that "undo" and "paste" were implemented.
  8.  
  9. The virecover program basically extracts the "undo" version from the file.
  10. This is most useful when the system (or Elvis) crashes in the middle of a
  11. long edit session, because the "undo" version of the file contains all but
  12. your last change.  Nearly all of your work can be salvaged.
  13.  
  14. There are two ways to invoke virecover:
  15.  
  16.     virecover textfilename
  17.     virecover </usr/tmp/viname
  18.  
  19. The first way is the most common.  You just give virecover the name of the file
  20. you were editing, and it finds the matching file in /usr/tmp and writes the
  21. newest available version of the file over the current version.  It then
  22. deletes the /usr/tmp file.
  23.  
  24. The other way, where you redirect its stdin to come from a particular /usr/tmp
  25. file, is used when you have either
  26.     - forgotten which file that is & you want to see its contents, or
  27.     - when you want to recover the file, without losing either the /usr/tmp
  28.       file or the current version of the text file.
  29.