2025-02-24 04:42:45 +01:00
|
|
|
Description
|
|
|
|
|
2025-02-24 05:56:09 +01:00
|
|
|
Zutils is a collection of utilities able to process any combination of
|
2025-02-24 05:43:06 +01:00
|
|
|
compressed and uncompressed files transparently. If any given file,
|
|
|
|
including standard input, is compressed, its decompressed content is
|
2025-02-24 05:04:07 +01:00
|
|
|
used. Compressed files are decompressed on the fly; no temporary files
|
2025-02-24 05:40:46 +01:00
|
|
|
are created.
|
|
|
|
|
|
|
|
These utilities are not wrapper scripts but safer and more efficient C++
|
2025-02-24 05:56:09 +01:00
|
|
|
programs. In particular the '--recursive' option is very efficient in
|
2025-02-24 05:40:46 +01:00
|
|
|
those utilities supporting it.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 05:58:06 +01:00
|
|
|
The utilities provided are zcat, zcmp, zdiff, zgrep, ztest and zupdate.
|
|
|
|
The formats supported are bzip2, gzip, lzip and xz.
|
2025-02-24 05:53:15 +01:00
|
|
|
Zutils uses external compressors. The compressor to be used for each
|
|
|
|
format is configurable at runtime.
|
2025-02-24 05:40:46 +01:00
|
|
|
|
2025-02-24 05:52:30 +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
|
2025-02-24 05:45:59 +01:00
|
|
|
similar to gzip's znew.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 05:42:37 +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
|
2025-02-24 05:45:59 +01:00
|
|
|
warning values, making them less reliable back ends for zutils.
|
2025-02-24 05:42:37 +01:00
|
|
|
|
2025-02-24 05:56:09 +01:00
|
|
|
FORMAT NOTE 1: The '--format' option allows the processing of a subset
|
2025-02-24 05:54:41 +01:00
|
|
|
of formats in recursive mode and when trying compressed file names:
|
2025-02-24 05:56:09 +01:00
|
|
|
'zgrep foo -r --format=bz2,lz somedir somefile.tar'.
|
2025-02-24 05:51:15 +01:00
|
|
|
|
2025-02-24 05:56:09 +01:00
|
|
|
FORMAT NOTE 2: If the '--force-format' option is given, the files are
|
2025-02-24 05:51:15 +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:09 +01:00
|
|
|
'zcmp --force-format=gz file.Z file.lz'.
|
2025-02-24 05:49:21 +01:00
|
|
|
|
2025-02-24 05:43:06 +01:00
|
|
|
LANGUAGE NOTE: Uncompressed = not compressed = plain data; it may never
|
2025-02-24 05:54:41 +01:00
|
|
|
have been compressed. Decompressed is used to refer to data which have
|
2025-02-24 05:43:06 +01:00
|
|
|
undergone the process of decompression.
|
|
|
|
|
2025-02-24 04:42:45 +01:00
|
|
|
|
2025-02-24 05:58:06 +01:00
|
|
|
Copyright (C) 2009-2019 Antonio Diaz Diaz.
|
2025-02-24 04:42:45 +01:00
|
|
|
|
|
|
|
This file is free documentation: you have unlimited permission to copy,
|
|
|
|
distribute and modify it.
|
|
|
|
|
|
|
|
The file Makefile.in is a data file used by configure to produce the
|
2025-02-24 05:04:07 +01:00
|
|
|
Makefile. It has the same copyright owner and permissions that configure
|
|
|
|
itself.
|