DOKK / manpages / debian 10 / zutils / zdiff.1.en
ZDIFF(1) User Commands ZDIFF(1)

zdiff - decompress and compare two files line by line

zdiff [options] file1 [file2]

Zdiff compares two files ('-' means standard input), and if they differ, shows the differences line by line. If any given file is compressed, its decompressed content is used. Zdiff is a front end to the diff program and has the limitation that messages from diff refer to temporary filenames instead of those specified.

The formats supported are bzip2, gzip, lzip and xz.

Zdiff compares file1 to file2. If file2 is omitted zdiff tries the following:

1. If file1 is compressed, compares its decompressed contents with the corresponding uncompressed file (the name of file1 with the extension removed).
2. If file1 is uncompressed, compares it with the decompressed contents of file1.[lz|bz2|gz|xz] (the first one that is found).
3. If no suitable file is found, compares file1 with data read from standard input.

Exit status is 0 if inputs are identical, 1 if different, 2 if trouble.

display this help and exit
output version information and exit
treat all files as text
ignore changes in the amount of white space
ignore changes whose lines are all blank
use the context output format
same as -c but use <n> lines of context
try hard to find a smaller set of changes
ignore changes due to tab expansion
ignore case differences in file contents
process only the formats in <list>
don't read runtime configuration file
force given formats (bz2, gz, lz, xz)
show which C function each change is in
output only whether files differ
report when two files are identical
expand tabs to spaces in output
make tabs line up by prepending a tab
use the unified output format
same as -u but use <n> lines of context
ignore all white space
set compressor and options for bzip2 format
set compressor and options for gzip format
set compressor and options for lzip format
set compressor and options for xz format

Report bugs to zutils-bug@nongnu.org
Zutils home page: http://www.nongnu.org/zutils/zutils.html

Copyright © 2019 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

January 2019 zdiff (zutils) 1.8