home *** CD-ROM | disk | FTP | other *** search
- **********************************************************************
- * COMPRESS *
- **********************************************************************
- * COPYRIGHT 1983 EUGENE H. MALLORY *
- **********************************************************************
- PROGRAM:
- COMPRESS - Compress input by encoding repeated characters.
- USAGE:
- COMPRESS [<fid] [>>fid]
- FUNCTION:
- Reads input and compresses the text to the output. Repeated
- strings of four or more characters are replaced by ^nC, where
- N is represented by A for 1, B for 2, etc. Runs longer than 26
- characters are encoded as several ^nC strings.
- EXAMPLE:
- COMPRESS <FILE >FILET
-
-
-
- _____________________________
- Standard Input | | Standard Output
- TEXT | | COMPRESSED TEXT
- ------------------->| COMPRESS |----------------------->
- | |
- | |
- |___________________________|