| 1 |
.TH ZDIFF 1 |
| 2 |
.SH NAME |
| 3 |
zcmp, zdiff \- compare compressed files |
| 4 |
.SH SYNOPSIS |
| 5 |
.B zcmp |
| 6 |
[ cmp_options ] file1 |
| 7 |
[ file2 ] |
| 8 |
.br |
| 9 |
.B zdiff |
| 10 |
[ diff_options ] file1 |
| 11 |
[ file2 ] |
| 12 |
.SH DESCRIPTION |
| 13 |
The |
| 14 |
.B zcmp |
| 15 |
and |
| 16 |
.B zdiff |
| 17 |
commands |
| 18 |
are used to invoke the |
| 19 |
.B cmp |
| 20 |
or the |
| 21 |
.B diff |
| 22 |
program on files compressed via |
| 23 |
.BR gzip "." |
| 24 |
All options specified are passed directly to |
| 25 |
.B cmp |
| 26 |
or |
| 27 |
.BR diff "." |
| 28 |
If only |
| 29 |
.I file1 |
| 30 |
is specified, it is compared to the uncompressed contents of |
| 31 |
.IB file1 ".gz" . |
| 32 |
If two files are specified, their contents (uncompressed if necessary) are fed to |
| 33 |
.B cmp |
| 34 |
or |
| 35 |
.BR diff "." |
| 36 |
The input files are not modified. |
| 37 |
The exit status from |
| 38 |
.B cmp |
| 39 |
or |
| 40 |
.B diff |
| 41 |
is preserved. |
| 42 |
.SH "SEE ALSO" |
| 43 |
cmp(1), diff(1), zmore(1), zgrep(1), znew(1), zforce(1), gzip(1), gzexe(1) |
| 44 |
.SH BUGS |
| 45 |
Messages from the |
| 46 |
.B cmp |
| 47 |
or |
| 48 |
.B diff |
| 49 |
programs may refer to file names such as "\-" instead of to the file |
| 50 |
names specified. |