2025-02-24 05:59:59 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.16.
|
2025-02-24 06:00:49 +01:00
|
|
|
.TH ZDIFF "1" "January 2022" "zutils 1.11" "User Commands"
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH NAME
|
2025-02-24 05:47:56 +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:30 +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:59:17 +01:00
|
|
|
zdiff compares two files and, if they differ, writes to standard output the
|
|
|
|
differences line by line. A hyphen '\-' used as a file argument means standard
|
|
|
|
input. If any file given is compressed, its decompressed content is used.
|
|
|
|
zdiff is a front end to the program diff and has the limitation that messages
|
|
|
|
from diff refer to temporary file names instead of those specified.
|
2025-02-24 05:40:39 +01:00
|
|
|
.PP
|
2025-02-24 06:00:49 +01:00
|
|
|
\&'zdiff \fB\-v\fR \fB\-V\fR' prints the version of the diff program used.
|
|
|
|
.PP
|
|
|
|
The formats supported are bzip2, gzip, lzip, xz, and zstd.
|
2025-02-24 04:42:45 +01:00
|
|
|
.PP
|
2025-02-24 05:59:17 +01:00
|
|
|
zdiff compares file1 to file2. The standard input is used only if file1 or
|
|
|
|
file2 refers to standard input. If file2 is omitted zdiff tries the
|
2025-02-24 05:01:08 +01:00
|
|
|
following:
|
2025-02-24 05:43:00 +01:00
|
|
|
.IP
|
2025-02-24 05:59:17 +01:00
|
|
|
\- If file1 is compressed, compares its decompressed contents with
|
2025-02-24 05:54:33 +01:00
|
|
|
the corresponding uncompressed file (the name of file1 with the
|
2025-02-24 05:43:00 +01:00
|
|
|
extension removed).
|
|
|
|
.IP
|
2025-02-24 05:59:17 +01:00
|
|
|
\- If file1 is uncompressed, compares it with the decompressed
|
2025-02-24 06:00:49 +01:00
|
|
|
contents of file1.[lz|bz2|gz|zst|xz] (the first one that is found).
|
2025-02-24 04:42:45 +01:00
|
|
|
.PP
|
2025-02-24 05:01:08 +01:00
|
|
|
Exit status is 0 if inputs are identical, 1 if different, 2 if trouble.
|
2025-02-24 05:59:17 +01:00
|
|
|
Some options only work if the diff program used supports them.
|
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:01:08 +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:09 +01:00
|
|
|
\fB\-M\fR, \fB\-\-format=\fR<list>
|
2025-02-24 05:52:24 +01:00
|
|
|
process only the formats in <list>
|
2025-02-24 05:51:09 +01:00
|
|
|
.TP
|
2025-02-24 05:43:00 +01:00
|
|
|
\fB\-N\fR, \fB\-\-no\-rcfile\fR
|
|
|
|
don't read runtime configuration file
|
|
|
|
.TP
|
2025-02-24 05:51:09 +01:00
|
|
|
\fB\-O\fR, \fB\-\-force\-format\fR=\fI\,[\/\fR<f1>][,<f2>]
|
2025-02-24 06:00:49 +01:00
|
|
|
force the formats given (bz2,gz,lz,xz,zst)
|
2025-02-24 05:51:09 +01:00
|
|
|
.TP
|
2025-02-24 05:01:08 +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
|
2025-02-24 06:00:49 +01:00
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
verbose mode (for \fB\-\-version\fR)
|
|
|
|
.TP
|
2025-02-24 05:01:08 +01:00
|
|
|
\fB\-w\fR, \fB\-\-ignore\-all\-space\fR
|
|
|
|
ignore all white space
|
2025-02-24 05:43:00 +01:00
|
|
|
.TP
|
2025-02-24 05:59:17 +01:00
|
|
|
\fB\-W\fR, \fB\-\-width=\fR<n>
|
|
|
|
output at most <n> print columns
|
|
|
|
.TP
|
|
|
|
\fB\-y\fR, \fB\-\-side\-by\-side\fR
|
|
|
|
output in two columns
|
|
|
|
.TP
|
2025-02-24 05:43:00 +01:00
|
|
|
\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 06:00:49 +01:00
|
|
|
.TP
|
|
|
|
\fB\-\-zst=\fR<command>
|
|
|
|
set compressor and options for zstd format
|
2025-02-24 04:42:45 +01:00
|
|
|
.SH "REPORTING BUGS"
|
2025-02-24 04:44:01 +01:00
|
|
|
Report bugs to zutils\-bug@nongnu.org
|
2025-02-24 05:01:08 +01:00
|
|
|
.br
|
2025-02-24 04:44:01 +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 06:00:49 +01:00
|
|
|
Copyright \(co 2022 Antonio Diaz Diaz.
|
2025-02-24 05:47:56 +01:00
|
|
|
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>
|
2025-02-24 05:01:08 +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.
|
2025-02-24 06:00:49 +01:00
|
|
|
.SH "SEE ALSO"
|
|
|
|
The full documentation for
|
|
|
|
.B zdiff
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
|
|
.B info
|
|
|
|
and
|
|
|
|
.B zdiff
|
|
|
|
programs are properly installed at your site, the command
|
|
|
|
.IP
|
|
|
|
.B info zutils
|
|
|
|
.PP
|
|
|
|
should give you access to the complete manual.
|