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
|
|
|
|
created.
|
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.
|
|
|
|
The formats supported are bzip2, gzip, lzip, and xz.
|
|
|
|
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
|
|
|
|
values, making them less reliable back ends for zutils.
|
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 05:54:33 +01:00
|
|
|
of formats in recursive mode and when trying compressed file names:
|
2025-02-24 05:56:02 +01:00
|
|
|
'zgrep foo -r --format=bz2,lz somedir somefile.tar'.
|
2025-02-24 05:51:09 +01:00
|
|
|
|
2025-02-24 05:59:17 +01:00
|
|
|
FORMAT NOTE 2: If the option '--force-format' is given, the files are
|
2025-02-24 05:51:09 +01:00
|
|
|
passed to the corresponding decompressor without verifying their format,
|
|
|
|
allowing for example the processing of compress'd (.Z) files with gzip:
|
2025-02-24 05:56:02 +01:00
|
|
|
'zcmp --force-format=gz file.Z file.lz'.
|
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 05:59:59 +01:00
|
|
|
Copyright (C) 2009-2021 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
|
|
|
|
|
|
|
The file Makefile.in is a data file used by configure to produce the
|
2025-02-24 05:01:08 +01:00
|
|
|
Makefile. It has the same copyright owner and permissions that configure
|
|
|
|
itself.
|