version 1.8, 1999/07/04 11:53:52 |
version 1.9, 1999/10/05 17:09:11 |
|
|
.Nd compress and expand data |
.Nd compress and expand data |
.Sh SYNOPSIS |
.Sh SYNOPSIS |
.Nm compress |
.Nm compress |
.Op Fl cftgOqv |
.Op Fl cdftgOqv |
.Op Fl b Ar bits |
.Op Fl b Ar bits |
.Op Fl o Ar filename |
.Op Fl o Ar filename |
.Op Ar |
.Op Ar |
|
|
.Op Fl o Ar filename |
.Op Fl o Ar filename |
.Op Ar |
.Op Ar |
.Sh DESCRIPTION |
.Sh DESCRIPTION |
|
The |
.Nm |
.Nm |
|
utility |
reduces the size of the named files using adaptive Lempel-Ziv coding. |
reduces the size of the named files using adaptive Lempel-Ziv coding. |
Each |
Each |
.Ar file |
.Ar file |
|
|
.Ar file , |
.Ar file , |
the file is ignored. |
the file is ignored. |
.Pp |
.Pp |
|
The |
.Nm uncompress |
.Nm uncompress |
restores the compressed files to their original form, renaming the |
utility restores compressed files to their original form, renaming the |
files by deleting the |
files by removing the |
.Dq .Z |
.Dq .Z |
extension. |
extension. |
.Pp |
.Pp |
|
|
.Pp |
.Pp |
If no files are specified, the standard input is compressed or uncompressed |
If no files are specified, the standard input is compressed or uncompressed |
to the standard output. |
to the standard output. |
If either the input and output files are not regular files, the checks for |
If either the input or output files are not regular files, the checks for |
reduction in size and file overwriting are not performed, the input file is |
reduction in size and file overwriting are not performed, the input file is |
not removed, and the attributes of the input file are not retained. |
not removed, and the attributes of the input file are not retained. |
.Pp |
.Pp |
|
|
continues to use more bits until the |
continues to use more bits until the |
limit specified by the |
limit specified by the |
.Fl b |
.Fl b |
flag is reached (the default is 16). |
flag is reached. |
.Ar bits |
.Ar bits |
must be between 9 and 16. |
must be between 9 and 16 (the default is 16). |
.Pp |
.Pp |
After the |
After the |
.Ar bits |
.Ar bits |
|
|
more files were not compressed because they would have grown in |
more files were not compressed because they would have grown in |
size (and |
size (and |
.Fl f |
.Fl f |
was not specifed). |
was not specified). |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Rs |
.Rs |
.%A Welch, Terry A. |
.%A Welch, Terry A. |