diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:18:02 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:18:02 +0000 |
commit | 728953ebef65becaca9f0ff4c3249e82c8fd5ec3 (patch) | |
tree | 9ab7182e76bfdc21a26de22f17f0e46fd350e27c /doc/zcmp.1 | |
parent | Adding debian version 0.8~rc1-1. (diff) | |
download | zutils-728953ebef65becaca9f0ff4c3249e82c8fd5ec3.tar.xz zutils-728953ebef65becaca9f0ff4c3249e82c8fd5ec3.zip |
Merging upstream version 0.8.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to 'doc/zcmp.1')
-rw-r--r-- | doc/zcmp.1 | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/doc/zcmp.1 b/doc/zcmp.1 new file mode 100644 index 0000000..ab3da39 --- /dev/null +++ b/doc/zcmp.1 @@ -0,0 +1,67 @@ +.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.37.1. +.TH ZCMP "1" "November 2010" "Zcmp (zutils) 0.8" "User Commands" +.SH NAME +Zcmp \- decompress and compare two files byte by byte +.SH SYNOPSIS +.B zcmp +[\fIoptions\fR] \fIfile1 \fR[\fIfile2\fR] +.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, +its uncompressed content is used. Compressed files are uncompressed on +the fly; no temporary files are created. +The supported compressors are bzip2, gzip, lzip and xz. +.PP +Compares <file1> to <file2>. If <file2> is omitted zcmp tries the +following: +If <file1> is compressed, compares <file1> to the file with the +corresponding decompressed file name (removes the extension from +<file1>). +If <file1> is not compressed, compares <file1> to the uncompressed +contents of <file1>.[bz2|gz|lz|xz] (the first one that is found). +If no suitable file is found, compares <file1> to data read from +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 +\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 +\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) +.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 +Copyright \(co 2010 Antonio Diaz Diaz. +License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> +.br +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. |