zcmp.1 (zutils-1.8.tar.lz) | : | zcmp.1 (zutils-1.9.tar.lz) | ||
---|---|---|---|---|
ZCMP(1) User Commands ZCMP(1) | ZCMP(1) User Commands ZCMP(1) | |||
NAME | NAME | |||
zcmp - decompress and compare two files byte by byte | zcmp - decompress and compare two files byte by byte | |||
SYNOPSIS | SYNOPSIS | |||
zcmp [options] file1 [file2] | zcmp [options] file1 [file2] | |||
DESCRIPTION | DESCRIPTION | |||
Zcmp compares two files ('-' means standard input), and if they differ | zcmp compares two files and, if they differ, writes to standard output | |||
, tells the first byte and line | the first byte and line number | |||
number where they differ. Bytes and lines are numbered starting with 1. I | where they differ. Bytes and lines are numbered starting with 1. A hyphen | |||
f any given file is compressed, | '-' used as a file argument | |||
its decompressed content is used. Compressed files are decompressed on | means standard input. If any file given is compressed, its decompres | |||
the fly; no temporary files are | sed content is used. Compressed | |||
created. | files are decompressed on the fly; no temporary files are created. | |||
The formats supported are bzip2, gzip, lzip and xz. | The formats supported are bzip2, gzip, lzip, and xz. | |||
Zcmp compares file1 to file2. If file2 is omitted zcmp tries the followin | zcmp compares file1 to file2. The standard input is used only if file1 | |||
g: | or file2 refers to standard | |||
input. If file2 is omitted zcmp tries the following: | ||||
1. If file1 is compressed, compares its decompressed contents with the corresponding uncompressed | - If file1 is compressed, compares its decompressed contents with the corresponding uncompressed | |||
file (the name of file1 with the extension removed). | file (the name of file1 with the extension removed). | |||
2. If file1 is uncompressed, compares it with the decompressed c ontents of file1.[lz|bz2|gz|xz] | - If file1 is uncompressed, compares it with the decompressed con tents of file1.[lz|bz2|gz|xz] | |||
(the first one that is found). | (the first one that is found). | |||
3. If no suitable file is found, compares file1 with data read fro | ||||
m standard input. | ||||
Exit status is 0 if inputs are identical, 1 if different, 2 if trouble. | Exit status is 0 if inputs are identical, 1 if different, 2 if trouble. | |||
OPTIONS | OPTIONS | |||
-h, --help | -h, --help | |||
display this help and exit | display this help and exit | |||
-V, --version | -V, --version | |||
output version information and exit | output version information and exit | |||
-b, --print-bytes | -b, --print-bytes | |||
skipping to change at line 55 | skipping to change at line 54 | |||
-M, --format=<list> | -M, --format=<list> | |||
process only the formats in <list> | process only the formats in <list> | |||
-n, --bytes=<n> | -n, --bytes=<n> | |||
compare at most <n> bytes | compare at most <n> bytes | |||
-N, --no-rcfile | -N, --no-rcfile | |||
don't read runtime configuration file | don't read runtime configuration file | |||
-O, --force-format=[<f1>][,<f2>] | -O, --force-format=[<f1>][,<f2>] | |||
force given formats (bz2, gz, lz, xz) | force the formats given (bz2, gz, lz, xz) | |||
-q, --quiet | -q, --quiet | |||
suppress all messages | suppress all messages | |||
-s, --silent | -s, --silent | |||
(same as --quiet) | (same as --quiet) | |||
-v, --verbose | -v, --verbose | |||
verbose mode (same as --list) | verbose mode (same as --list) | |||
skipping to change at line 78 | skipping to change at line 77 | |||
--gz=<command> | --gz=<command> | |||
set compressor and options for gzip format | set compressor and options for gzip format | |||
--lz=<command> | --lz=<command> | |||
set compressor and options for lzip format | set compressor and options for lzip format | |||
--xz=<command> | --xz=<command> | |||
set compressor and options for xz format | set compressor and options for xz format | |||
Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = KiB = 2^10 = 1024, M = 10^6, Mi = | Numbers may be followed by a multiplier: k = kB = 10^3 = 1000, Ki = Ki B = 2^10 = 1024, M = 10^6, Mi = | |||
2^20, G = 10^9, Gi = 2^30, etc... | 2^20, G = 10^9, Gi = 2^30, etc... | |||
REPORTING BUGS | REPORTING BUGS | |||
Report bugs to zutils-bug@nongnu.org | Report bugs to zutils-bug@nongnu.org | |||
Zutils home page: http://www.nongnu.org/zutils/zutils.html | Zutils home page: http://www.nongnu.org/zutils/zutils.html | |||
COPYRIGHT | COPYRIGHT | |||
Copyright © 2019 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later | Copyright © 2020 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later | |||
<http://gnu.org/licenses/gpl.html> | <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 | This is free software: you are free to change and redistribute it. Ther e is NO WARRANTY, to the extent | |||
permitted by law. | permitted by law. | |||
zcmp (zutils) 1.8 January 2019 ZCMP(1) | zcmp (zutils) 1.9 June 2020 ZCMP(1) | |||
End of changes. 11 change blocks. | ||||
19 lines changed or deleted | 17 lines changed or added |