2025-02-24 05:49:37 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
|
2025-02-24 05:53:15 +01:00
|
|
|
.TH ZDIFF "1" "May 2016" "zdiff (zutils) 1.5" "User Commands"
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH NAME
|
2025-02-24 05:48:02 +01:00
|
|
|
zdiff \- decompress and compare two files line by line
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B zdiff
|
2025-02-24 05:49:37 +01:00
|
|
|
[\fI\,options\/\fR] \fI\,file1 \/\fR[\fI\,file2\/\fR]
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH DESCRIPTION
|
2025-02-24 05:53:15 +01:00
|
|
|
Zdiff compares two files ('\-' means standard input), and if they
|
2025-02-24 05:04:07 +01:00
|
|
|
differ, shows the differences line by line. If any given file is
|
2025-02-24 05:43:06 +01:00
|
|
|
compressed, its decompressed content is used. Zdiff is a front end to
|
2025-02-24 05:04:07 +01:00
|
|
|
the diff program and has the limitation that messages from diff refer to
|
|
|
|
temporary filenames instead of those specified.
|
2025-02-24 05:40:46 +01:00
|
|
|
.PP
|
|
|
|
The supported formats are bzip2, gzip, lzip and xz.
|
2025-02-24 04:42:45 +01:00
|
|
|
.PP
|
2025-02-24 05:04:07 +01:00
|
|
|
Compares <file1> to <file2>. If <file2> is omitted zdiff tries the
|
|
|
|
following:
|
2025-02-24 05:43:06 +01:00
|
|
|
.IP
|
|
|
|
1. If <file1> is compressed, compares its decompressed contents with
|
|
|
|
the corresponding uncompressed file (the name of <file1> with the
|
|
|
|
extension removed).
|
|
|
|
.IP
|
|
|
|
2. If <file1> is uncompressed, compares it with the decompressed
|
2025-02-24 05:42:37 +01:00
|
|
|
contents of <file1>.[lz|bz2|gz|xz] (the first one that is found).
|
2025-02-24 05:43:06 +01:00
|
|
|
.IP
|
|
|
|
3. If no suitable file is found, compares <file1> with data read from
|
2025-02-24 05:04:07 +01:00
|
|
|
standard input.
|
2025-02-24 04:42:45 +01:00
|
|
|
.PP
|
2025-02-24 05:04:07 +01:00
|
|
|
Exit status is 0 if inputs are identical, 1 if different, 2 if trouble.
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
|
|
|
display this help and exit
|
|
|
|
.TP
|
|
|
|
\fB\-V\fR, \fB\-\-version\fR
|
|
|
|
output version information and exit
|
|
|
|
.TP
|
2025-02-24 05:04:07 +01:00
|
|
|
\fB\-a\fR, \fB\-\-text\fR
|
|
|
|
treat all files as text
|
|
|
|
.TP
|
|
|
|
\fB\-b\fR, \fB\-\-ignore\-space\-change\fR
|
|
|
|
ignore changes in the amount of white space
|
|
|
|
.TP
|
|
|
|
\fB\-B\fR, \fB\-\-ignore\-blank\-lines\fR
|
|
|
|
ignore changes whose lines are all blank
|
|
|
|
.TP
|
|
|
|
\fB\-c\fR
|
|
|
|
use the context output format
|
|
|
|
.TP
|
|
|
|
\fB\-C\fR, \fB\-\-context=\fR<n>
|
|
|
|
same as \fB\-c\fR but use <n> lines of context
|
|
|
|
.TP
|
|
|
|
\fB\-d\fR, \fB\-\-minimal\fR
|
|
|
|
try hard to find a smaller set of changes
|
|
|
|
.TP
|
|
|
|
\fB\-E\fR, \fB\-\-ignore\-tab\-expansion\fR
|
|
|
|
ignore changes due to tab expansion
|
|
|
|
.TP
|
|
|
|
\fB\-i\fR, \fB\-\-ignore\-case\fR
|
|
|
|
ignore case differences in file contents
|
2025-02-24 04:42:45 +01:00
|
|
|
.TP
|
2025-02-24 05:51:15 +01:00
|
|
|
\fB\-M\fR, \fB\-\-format=\fR<list>
|
2025-02-24 05:52:30 +01:00
|
|
|
process only the formats in <list>
|
2025-02-24 05:51:15 +01:00
|
|
|
.TP
|
2025-02-24 05:43:06 +01:00
|
|
|
\fB\-N\fR, \fB\-\-no\-rcfile\fR
|
|
|
|
don't read runtime configuration file
|
|
|
|
.TP
|
2025-02-24 05:51:15 +01:00
|
|
|
\fB\-O\fR, \fB\-\-force\-format\fR=\fI\,[\/\fR<f1>][,<f2>]
|
|
|
|
force given formats (bz2, gz, lz, xz)
|
|
|
|
.TP
|
2025-02-24 05:04:07 +01:00
|
|
|
\fB\-p\fR, \fB\-\-show\-c\-function\fR
|
|
|
|
show which C function each change is in
|
|
|
|
.TP
|
|
|
|
\fB\-q\fR, \fB\-\-brief\fR
|
|
|
|
output only whether files differ
|
|
|
|
.TP
|
|
|
|
\fB\-s\fR, \fB\-\-report\-identical\-files\fR
|
|
|
|
report when two files are identical
|
|
|
|
.TP
|
|
|
|
\fB\-t\fR, \fB\-\-expand\-tabs\fR
|
|
|
|
expand tabs to spaces in output
|
|
|
|
.TP
|
|
|
|
\fB\-T\fR, \fB\-\-initial\-tab\fR
|
|
|
|
make tabs line up by prepending a tab
|
|
|
|
.TP
|
|
|
|
\fB\-u\fR
|
|
|
|
use the unified output format
|
|
|
|
.TP
|
|
|
|
\fB\-U\fR, \fB\-\-unified=\fR<n>
|
|
|
|
same as \fB\-u\fR but use <n> lines of context
|
|
|
|
.TP
|
|
|
|
\fB\-w\fR, \fB\-\-ignore\-all\-space\fR
|
|
|
|
ignore all white space
|
2025-02-24 05:43:06 +01:00
|
|
|
.TP
|
|
|
|
\fB\-\-bz2=\fR<command>
|
|
|
|
set compressor and options for bzip2 format
|
|
|
|
.TP
|
|
|
|
\fB\-\-gz=\fR<command>
|
|
|
|
set compressor and options for gzip format
|
|
|
|
.TP
|
|
|
|
\fB\-\-lz=\fR<command>
|
|
|
|
set compressor and options for lzip format
|
|
|
|
.TP
|
|
|
|
\fB\-\-xz=\fR<command>
|
|
|
|
set compressor and options for xz format
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH "REPORTING BUGS"
|
2025-02-24 04:51:19 +01:00
|
|
|
Report bugs to zutils\-bug@nongnu.org
|
2025-02-24 05:04:07 +01:00
|
|
|
.br
|
2025-02-24 04:51:19 +01:00
|
|
|
Zutils home page: http://www.nongnu.org/zutils/zutils.html
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH COPYRIGHT
|
2025-02-24 05:53:15 +01:00
|
|
|
Copyright \(co 2016 Antonio Diaz Diaz.
|
2025-02-24 05:48:02 +01:00
|
|
|
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
|
2025-02-24 05:04:07 +01:00
|
|
|
.br
|
|
|
|
This is free software: you are free to change and redistribute it.
|
|
|
|
There is NO WARRANTY, to the extent permitted by law.
|