2025-02-24 06:03:38 +01:00
|
|
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2.
|
2025-02-24 06:04:06 +01:00
|
|
|
.TH ZCMP "1" "January 2024" "zutils 1.13" "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
|
2025-02-24 05:59:17 +01:00
|
|
|
zcmp compares two files and, if they differ, writes to standard output the
|
|
|
|
first byte and line number where they differ. Bytes and lines are numbered
|
|
|
|
starting with 1. A hyphen '\-' used as a file argument means standard input.
|
|
|
|
If any file given is compressed, its decompressed content is used. Compressed
|
|
|
|
files are decompressed on the fly; no temporary files are created.
|
2025-02-24 05:40:39 +01:00
|
|
|
.PP
|
2025-02-24 06:00:49 +01:00
|
|
|
The formats supported are bzip2, gzip, lzip, xz, and zstd.
|
2025-02-24 05:01:08 +01:00
|
|
|
.PP
|
2025-02-24 05:59:17 +01:00
|
|
|
zcmp compares file1 to file2. The standard input is used only if file1 or
|
2025-02-24 06:03:38 +01:00
|
|
|
file2 refers to standard input. If file2 is omitted zcmp tries to compare
|
|
|
|
file1 with the corresponding uncompressed file (if file1 is compressed), and
|
|
|
|
then with the corresponding compressed files of the remaining formats until
|
|
|
|
one is found.
|
2025-02-24 05:01:08 +01:00
|
|
|
.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 06:02:19 +01:00
|
|
|
\fB\-H\fR, \fB\-\-hexadecimal\fR
|
|
|
|
print hexadecimal values instead of octal
|
|
|
|
.TP
|
2025-02-24 05:54:33 +01:00
|
|
|
\fB\-i\fR, \fB\-\-ignore\-initial=\fR<n>[:<n2>]
|
2025-02-24 05:01:08 +01:00
|
|
|
ignore differences in the first <n> bytes
|
|
|
|
.TP
|
|
|
|
\fB\-l\fR, \fB\-\-list\fR
|
|
|
|
list position, value of all differing bytes
|
|
|
|
.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:01:08 +01:00
|
|
|
\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:51:09 +01:00
|
|
|
\fB\-O\fR, \fB\-\-force\-format\fR=\fI\,[\/\fR<f1>][,<f2>]
|
2025-02-24 06:02:19 +01:00
|
|
|
force one or both input formats
|
2025-02-24 05:51:09 +01:00
|
|
|
.TP
|
2025-02-24 06:02:19 +01:00
|
|
|
\fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
|
|
|
|
suppress diagnostics written to stderr
|
2025-02-24 05:01:08 +01:00
|
|
|
.TP
|
2025-02-24 06:02:19 +01:00
|
|
|
\fB\-s\fR, \fB\-\-script\fR
|
|
|
|
suppress messages about file differences
|
2025-02-24 05:01:08 +01:00
|
|
|
.TP
|
|
|
|
\fB\-v\fR, \fB\-\-verbose\fR
|
2025-02-24 06:02:19 +01:00
|
|
|
verbose mode (opposite of \fB\-\-quiet\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 06:00:49 +01:00
|
|
|
.TP
|
|
|
|
\fB\-\-zst=\fR<command>
|
|
|
|
set compressor and options for zstd format
|
2025-02-24 05:01:08 +01:00
|
|
|
.PP
|
2025-02-24 06:02:19 +01:00
|
|
|
Valid formats for options '\-M' and '\-O' are 'bz2', 'gz', 'lz', 'xz', 'zst',
|
|
|
|
and 'un' for uncompressed.
|
|
|
|
.PP
|
|
|
|
Byte counts given as arguments to options may be expressed in decimal,
|
|
|
|
hexadecimal, or octal (using the same syntax as integer constants in C++),
|
|
|
|
and 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.
|
2025-02-24 05:01:08 +01:00
|
|
|
.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 06:04:06 +01:00
|
|
|
Copyright \(co 2024 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 zcmp
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
|
|
.B info
|
|
|
|
and
|
|
|
|
.B zcmp
|
|
|
|
programs are properly installed at your site, the command
|
|
|
|
.IP
|
|
|
|
.B info zutils
|
|
|
|
.PP
|
|
|
|
should give you access to the complete manual.
|