home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / old / ckermit4e / ckdsq.man < prev    next >
Text File  |  2020-01-01  |  2KB  |  63 lines

  1. /* This program compresses a file without losing information.
  2.  * The "usq" program is required to unsqueeze the file
  3.  * before it can be used.
  4.  *
  5.  * Typical compression rates are between 30 and 50 percent for text files.
  6.  *
  7.  * Squeezing a really big file takes a few minutes.
  8.  *
  9.  * Useage:
  10.  *    sq [file1] [file2] ... [filen]
  11.  *
  12.  * where file1 through filen are the names of the files to be squeezed.
  13.  * The file type (under CP/M or MS-DOS) is changed to ".SQ"; under UN*X,
  14.  * ".SQ" is appended to the file name. The original file name is stored
  15.  * in the squeezed file.
  16.  *
  17.  * If no file name is given on the command line you will be
  18.  * prompted for commands (one at a time). An empty command
  19.  * terminates the program.
  20.  *
  21.  * The transformations compress strings of identical bytes and
  22.  * then encode each resulting byte value and EOF as bit strings
  23.  * having lengths in inverse proportion to their frequency of
  24.  * occurrance in the intermediate input stream. The latter uses
  25.  * the Huffman algorithm. Decoding information is included in
  26.  * the squeezed file, so squeezing short files or files with
  27.  * uniformly distributed byte values will actually increase size.
  28.  */
  29.  
  30. /* Program to unsqueeze files formed by sq.com
  31.  *
  32.  * Useage:
  33.  *
  34.  *    usq [-count] [-fcount] [file1] [file2] ... [filen]
  35.  *
  36.  * where file1 through filen represent one or more files to be compressed,
  37.  * and the following options may be specified:
  38.  *
  39.  *    -count        Previewing feature: redirects output
  40.  *             files to standard output with parity stripped
  41.  *            and unprintables except CR, LF, TAB and  FF
  42.  *            converted to periods. Limits each file
  43.  *            to first count lines.
  44.  *            Defaults to console, but see below how
  45.  *            to capture all in one file for further
  46.  *            processing, such as by PIP.
  47.  *            Count defaults to a very high value.
  48.  *            No CRC check is performed when previewing.
  49.  *            Use drive: to cancel this.
  50.  *
  51.  *    -fcount        Same as -count except formfeed
  52.  *            appended to preview of each file.
  53.  *            Example: -f10.
  54.  *
  55.  * If no such items are given on the command line you will be
  56.  * prompted for commands (one at a time). An empty command
  57.  * terminates the program.
  58.  *
  59.  * The unsqueezed file name is recorded in the squeezed file.
  60.  * 
  61.  */
  62.  
  63.