2025-02-24 05:49:30 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1.
|
|
|
|
.TH ZCMP "1" "August 2014" "zcmp (zutils) 1.3" "User Commands"
|
2025-02-24 05:01:08 +01:00
|
|
|
.SH NAME
|
2025-02-24 05:47:56 +01:00
|
|
|
zcmp \- decompress and compare two files byte by byte
|
2025-02-24 05:01:08 +01:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B zcmp
|
2025-02-24 05:49:30 +01:00
|
|
|
[\fI\,options\/\fR] \fI\,file1 \/\fR[\fI\,file2\/\fR]
|
2025-02-24 05:01:08 +01:00
|
|
|
.SH DESCRIPTION
|
|
|
|
Zcmp compares two files ("\-" means standard input), and if they
|
|
|
|
differ, tells the first byte and line number where they differ. Bytes
|
|
|
|
and lines are numbered starting with 1. If any given file is compressed,
|
2025-02-24 05:43:00 +01:00
|
|
|
its decompressed content is used. Compressed files are decompressed on
|
2025-02-24 05:01:08 +01:00
|
|
|
the fly; no temporary files are created.
|
2025-02-24 05:40:39 +01:00
|
|
|
.PP
|
|
|
|
The supported formats are bzip2, gzip, lzip and xz.
|
2025-02-24 05:01:08 +01:00
|
|
|
.PP
|
|
|
|
Compares <file1> to <file2>. If <file2> is omitted zcmp tries the
|
|
|
|
following:
|
2025-02-24 05:43:00 +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:28 +01:00
|
|
|
contents of <file1>.[lz|bz2|gz|xz] (the first one that is found).
|
2025-02-24 05:43:00 +01:00
|
|
|
.IP
|
|
|
|
3. If no suitable file is found, compares <file1> with data read from
|
2025-02-24 05:01:08 +01:00
|
|
|
standard input.
|
|
|
|
.PP
|
|
|
|
Exit status is 0 if inputs are identical, 1 if different, 2 if trouble.
|
|
|
|
.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
|
|
|
|
\fB\-b\fR, \fB\-\-print\-bytes\fR
|
|
|
|
print differing bytes
|
|
|
|
.TP
|
2025-02-24 05:49:30 +01:00
|
|
|
\fB\-\-format\fR=\fI\,[\/\fR<fmt1>][,<fmt2>]
|
2025-02-24 05:40:39 +01:00
|
|
|
force given formats (bz2, gz, lz, xz)
|
|
|
|
.TP
|
2025-02-24 05:01:08 +01:00
|
|
|
\fB\-i\fR, \fB\-\-ignore\-initial=\fR<n>[,<n2>]
|
|
|
|
ignore differences in the first <n> bytes
|
|
|
|
.TP
|
|
|
|
\fB\-l\fR, \fB\-\-list\fR
|
|
|
|
list position, value of all differing bytes
|
|
|
|
.TP
|
|
|
|
\fB\-n\fR, \fB\-\-bytes=\fR<n>
|
|
|
|
compare at most <n> bytes
|
|
|
|
.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:01:08 +01:00
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR
|
|
|
|
suppress all messages
|
|
|
|
.TP
|
|
|
|
\fB\-s\fR, \fB\-\-silent\fR
|
|
|
|
(same as \fB\-\-quiet\fR)
|
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
|
|
|
verbose mode (same as \fB\-\-list\fR)
|
2025-02-24 05:43:00 +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 05:01:08 +01:00
|
|
|
.PP
|
|
|
|
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000,
|
|
|
|
Ki = KiB = 2^10 = 1024, M = 10^6, Mi = 2^20, G = 10^9, Gi = 2^30, etc...
|
|
|
|
.SH "REPORTING BUGS"
|
|
|
|
Report bugs to zutils\-bug@nongnu.org
|
|
|
|
.br
|
|
|
|
Zutils home page: http://www.nongnu.org/zutils/zutils.html
|
|
|
|
.SH COPYRIGHT
|
2025-02-24 05:46:38 +01:00
|
|
|
Copyright \(co 2014 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.
|