2009-07-05 19:25:17 +00:00
|
|
|
.\"
|
|
|
|
.\" Original zdiff.1 for gzip: Jean-loup Gailly
|
|
|
|
.\"
|
|
|
|
.\" Modifications for XZ Utils: Lasse Collin
|
|
|
|
.\" Andrew Dudman
|
|
|
|
.\"
|
|
|
|
.\" License: GNU GPLv2+
|
|
|
|
.\"
|
|
|
|
.TH XZDIFF 1 "2009-07-05" "Tukaani" "XZ Utils"
|
2007-12-08 22:42:33 +00:00
|
|
|
.SH NAME
|
2009-07-05 19:25:17 +00:00
|
|
|
xzcmp, xzdiff, lzcmp, lzdiff \- compare compressed files
|
2007-12-08 22:42:33 +00:00
|
|
|
.SH SYNOPSIS
|
2009-04-13 11:49:48 +00:00
|
|
|
.B xzcmp
|
|
|
|
.RI [ cmp_options "] " file1 " [" file2 ]
|
|
|
|
.br
|
|
|
|
.B xzdiff
|
|
|
|
.RI [ diff_options "] " file1 " [" file2 ]
|
|
|
|
.br
|
2007-12-08 22:42:33 +00:00
|
|
|
.B lzcmp
|
|
|
|
.RI [ cmp_options "] " file1 " [" file2 ]
|
|
|
|
.br
|
2009-04-13 11:49:48 +00:00
|
|
|
.B lzdiff
|
2007-12-08 22:42:33 +00:00
|
|
|
.RI [ diff_options "] " file1 " [" file2 ]
|
|
|
|
.SH DESCRIPTION
|
2009-04-13 11:49:48 +00:00
|
|
|
.B xzcmp
|
2009-01-19 20:37:16 +00:00
|
|
|
and
|
2010-02-12 11:16:15 +00:00
|
|
|
.B xzdiff
|
2009-07-05 19:25:17 +00:00
|
|
|
invoke
|
2007-12-08 22:42:33 +00:00
|
|
|
.BR cmp (1)
|
2009-07-05 19:25:17 +00:00
|
|
|
or
|
2007-12-08 22:42:33 +00:00
|
|
|
.BR diff (1)
|
2009-07-05 19:25:17 +00:00
|
|
|
on files compressed with
|
|
|
|
.BR xz (1),
|
|
|
|
.BR lzma (1),
|
|
|
|
.BR gzip (1),
|
|
|
|
or
|
|
|
|
.BR bzip2 (1).
|
|
|
|
All options specified are passed directly to
|
2007-12-08 22:42:33 +00:00
|
|
|
.B cmp
|
|
|
|
or
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR diff .
|
|
|
|
If only one file is specified, then the files compared are
|
2007-12-08 22:42:33 +00:00
|
|
|
.I file1
|
2009-07-05 19:25:17 +00:00
|
|
|
(which must have a suffix of a supported compression format) and
|
2009-04-13 11:49:48 +00:00
|
|
|
.I file1
|
2009-07-05 19:25:17 +00:00
|
|
|
from which the compression format suffix has been stripped.
|
2007-12-08 22:42:33 +00:00
|
|
|
If two files are specified, then they are uncompressed if necessary and fed to
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR cmp (1)
|
2007-12-08 22:42:33 +00:00
|
|
|
or
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR diff (1).
|
2009-01-19 20:37:16 +00:00
|
|
|
The exit status from
|
2007-12-08 22:42:33 +00:00
|
|
|
.B cmp
|
|
|
|
or
|
|
|
|
.B diff
|
|
|
|
is preserved.
|
2009-07-05 19:25:17 +00:00
|
|
|
.PP
|
|
|
|
The names
|
|
|
|
.B lzcmp
|
|
|
|
and
|
|
|
|
.B lzdiff
|
|
|
|
are provided for backward compatibility with LZMA Utils.
|
2007-12-08 22:42:33 +00:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
.BR cmp (1),
|
|
|
|
.BR diff (1),
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR xz (1),
|
|
|
|
.BR gzip (1),
|
|
|
|
.BR bzip2 (1),
|
|
|
|
.BR zdiff (1)
|
2007-12-08 22:42:33 +00:00
|
|
|
.SH BUGS
|
|
|
|
Messages from the
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR cmp (1)
|
2007-12-08 22:42:33 +00:00
|
|
|
or
|
2009-07-05 19:25:17 +00:00
|
|
|
.BR diff (1)
|
2007-12-08 22:42:33 +00:00
|
|
|
programs refer to temporary filenames instead of those specified.
|