virec Command virec Recover the modified version of a file after a crash virec [-d tmpdir] textfilename... virec </tmp/elvXXX virec extracts the most recent version of a text file from a tem- porary file in /tmp. When you edit a file with elvis, only about five kilobytes of the file are stored in RAM; the rest is stored in a file in /tmp. virec extracts the ``undo'' version from the file stored in /tmp. This is most useful when the system (or elvis) crashes in the middle of a long editing session, since the ``undo'' version of the file contains everything except your last change. There are two ways to use virec. The first, and most common, way to invoke virec is to give it the name of the file you were editing; it finds the matching file in /tmp and writes the newest available version of the file over the existing version. It then deletes the /tmp file. The second way is to use the `<' to let virec read a particular /tmp file via stdin. Use this method when you either have for- gotten which file you were editing and want to see its contents, or when you wish to recover a file without losing either the /tmp file or the current version of the text file. The -d option tells virec to look for a temporary file in direc- tory rather than in /tmp. ***** Files ***** /tmp/elv* -- Temporary file created by elvis ***** See Also ***** commands, elvis ***** Notes ***** virec is a public-domain program written by Steve Kirkendall (kirkenda@cs.pdx.edu or ...uunet!tektronix!psueea!eecs!kirkenda). Source code for this program is available via the Mark Williams bulletin board, USENET and other sources. Please note that this program is distributed as a service to COHERENT users, but it is not supported by Mark Williams Company. Caveat utilitor. COHERENT Lexicon Page 1