.\" $FreeBSD$ .\" Copyright (c) 2012 Jesse Hagewood .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" zdiff.1 .Dd Aug 15, 2012 .Dt ZDIFF 1 .Os .Sh NAME .Nm zdiff .Nd differential file and directory comparator for compressed files. .Sh SYNOPSIS .Nm zdiff .Op Fl abdilpqTtw .Op Fl I Ar pattern .Oo .Fl c | e | f | .Fl n | u .Oc .Op Fl L Ar label .Ar file1 file2 .Nm zdiff .Op Fl abdilpqTtw .Op Fl I Ar pattern .Op Fl L Ar label .Fl C Op Ar number .Ar file1 file2 .Nm zdiff .Op Fl abdilqtw .Op Fl I Ar pattern .Fl D Ar string .Ar file1 file2 .Nm zdiff .Op Fl abdilpqTtw .Op Fl I Ar pattern .Op Fl L Ar label .Fl U Ar number .Ar file1 file2 .Nm zdiff .Op Fl abdilNPpqrsTtw .Op Fl I Ar pattern .Oo .Fl c | e | f | .Fl n | u .Oc .Bk -words .Op Fl L Ar label .Op Fl S Ar name .Op Fl X Ar file .Op Fl x Ar pattern .Ek .Ar dir1 dir2 .Nm zdiff .Op Fl v .Sh DESCRIPTION The .Nm utility compares the decompressed contents of gzip .Ar file1 and .Ar file2 and writes to the standard output the list of changes necessary to convert one file into the other. No output is produced if the files are identical. See diff(1) for program options. .Sh ENVIRONMENT .Bl -tag -width TMPDIR .It Ev TMPDIR If the environment variable .Ev TMPDIR exists, .Nm will use the directory specified by .Ev TMPDIR as the temporary directory. .El .Sh FILES .Bl -tag -width /tmp/diff.XXXXXXXX -compact .It Pa /tmp/diff. Ns Ar XXXXXXXX Temporary file used when comparing a device or the standard input. Note that the temporary file is unlinked as soon as it is created so it will not show up in a directory listing. .El .Sh DIAGNOSTICS The .Nm utility exits with one of the following values: .Pp .Bl -tag -width Ds -compact -offset indent .It 0 No differences were found. .It 1 Differences were found. .It \*(Gt1 An error occurred. .El .Sh SEE ALSO .Xr diff 1 , .Xr cmp 1 , .Xr diff3 1 , .Xr sdiff 1 , .Xr zsdiff 1