.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.46.1. .TH ZCMP "1" "May 2016" "zcmp (zutils) 1.5" "User Commands" .SH NAME zcmp \- decompress and compare two files byte by byte .SH SYNOPSIS .B zcmp [\fI\,options\/\fR] \fI\,file1 \/\fR[\fI\,file2\/\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 decompressed content is used. Compressed files are decompressed on the fly; no temporary files are created. .PP The supported formats are bzip2, gzip, lzip and xz. .PP Compares to . If is omitted zcmp tries the following: .IP 1. If is compressed, compares its decompressed contents with the corresponding uncompressed file (the name of with the extension removed). .IP 2. If is uncompressed, compares it with the decompressed contents of .[lz|bz2|gz|xz] (the first one that is found). .IP 3. If no suitable file is found, compares with 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[,] ignore differences in the first bytes .TP \fB\-l\fR, \fB\-\-list\fR list position, value of all differing bytes .TP \fB\-M\fR, \fB\-\-format=\fR process only the formats in .TP \fB\-n\fR, \fB\-\-bytes=\fR compare at most bytes .TP \fB\-N\fR, \fB\-\-no\-rcfile\fR don't read runtime configuration file .TP \fB\-O\fR, \fB\-\-force\-format\fR=\fI\,[\/\fR][,] force given formats (bz2, gz, lz, xz) .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) .TP \fB\-\-bz2=\fR set compressor and options for bzip2 format .TP \fB\-\-gz=\fR set compressor and options for gzip format .TP \fB\-\-lz=\fR set compressor and options for lzip format .TP \fB\-\-xz=\fR set compressor and options for xz format .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 2016 Antonio Diaz Diaz. License GPLv2+: GNU GPL version 2 or later .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.