2025-02-24 04:42:45 +01:00
|
|
|
Description
|
|
|
|
|
2025-02-24 05:56:02 +01:00
|
|
|
Zutils is a collection of utilities able to process any combination of
|
2025-02-24 05:59:17 +01:00
|
|
|
compressed and uncompressed files transparently. If any file given,
|
|
|
|
including standard input, is compressed, its decompressed content is used.
|
|
|
|
Compressed files are decompressed on the fly; no temporary files are
|
2025-02-24 06:03:38 +01:00
|
|
|
created. Data format is detected by its identifier string (magic bytes), not
|
|
|
|
by the file name extension. Empty files are considered uncompressed.
|
2025-02-24 05:40:39 +01:00
|
|
|
|
|
|
|
These utilities are not wrapper scripts but safer and more efficient C++
|
2025-02-24 05:59:17 +01:00
|
|
|
programs. In particular the option '--recursive' is very efficient in
|
2025-02-24 05:40:39 +01:00
|
|
|
those utilities supporting it.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
The utilities provided are zcat, zcmp, zdiff, zgrep, ztest, and zupdate.
|
2025-02-24 06:00:49 +01:00
|
|
|
The formats supported are bzip2, gzip, lzip, xz, and zstd.
|
2025-02-24 05:59:17 +01:00
|
|
|
Zutils uses external compressors. The compressor to be used for each format
|
|
|
|
is configurable at runtime.
|
2025-02-24 05:40:39 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
zcat, zcmp, zdiff, and zgrep are improved replacements for the shell scripts
|
|
|
|
provided by GNU gzip. ztest is unique to zutils. zupdate is similar to
|
|
|
|
gzip's znew.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
NOTE: Bzip2 and lzip provide well-defined values of exit status, which makes
|
|
|
|
them safe to use with zutils. Gzip and xz may return ambiguous warning
|
2025-02-24 06:00:49 +01:00
|
|
|
values, making them less reliable back ends for zutils. Zstd currently does
|
|
|
|
not even document its exit status in its man page.
|
2025-02-24 05:42:28 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
FORMAT NOTE 1: The option '--format' allows the processing of a subset
|
2025-02-24 06:00:49 +01:00
|
|
|
of formats in recursive mode and when trying compressed file names. For
|
|
|
|
example, use the following command to search for the string 'foo' in
|
|
|
|
gzip and lzip files only:
|
|
|
|
'zgrep foo -r --format=gz,lz somedir somefile.tar'.
|
2025-02-24 05:51:09 +01:00
|
|
|
|
2025-02-24 06:01:46 +01:00
|
|
|
FORMAT NOTE 2: The standard POSIX compress format (.Z) is obsolete and is
|
|
|
|
only supported through gzip. For this to work, the gzip program used (for
|
|
|
|
example GNU gzip) must be able to decompress .Z files.
|
2025-02-24 05:49:11 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may never have
|
|
|
|
been compressed. Decompressed is used to refer to data which have undergone
|
|
|
|
the process of decompression.
|
2025-02-24 05:43:00 +01:00
|
|
|
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 06:04:06 +01:00
|
|
|
Copyright (C) 2009-2024 Antonio Diaz Diaz.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
|
|
|
This file is free documentation: you have unlimited permission to copy,
|
2025-02-24 05:59:17 +01:00
|
|
|
distribute, and modify it.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 06:03:38 +01:00
|
|
|
The file Makefile.in is a data file used by configure to produce the Makefile.
|
|
|
|
It has the same copyright owner and permissions that configure itself.
|