Projects / Zutils

Zutils

Zutils is a collection of utilities able to deal with any combination of compressed and uncompressed files transparently. If any given file, including standard input, is compressed, its decompressed content is used. Compressed files are decompressed on the fly; no temporary files are created. These utilities are not wrapper scripts but safer and more efficient C++ programs. In particular the "--recursive" option is very efficient in those utilities supporting it. The provided utilities are zcat, zcmp, zdiff, zgrep, ztest, and zupdate. The supported formats are bzip2, gzip, lzip, and xz. The compressor to be used for each format is configurable at runtime.

Tags
Licenses
Operating Systems
Implementation

RSS Recent releases

  •  24 Feb 2014 15:08

Release Notes: The new utility zupdate, which recompresses bzip2, gzip, and xz files to lzip format, has been added. The zutils executable has been removed. All utilities are now independent executables. The exit status of zgrep should now be identical to that of grep. "zutils.texinfo" has been renamed to "zutils.texi".

  •  16 Oct 2013 16:17

Release Notes: The zutils executable has been removed. All utilities are now independent executables. The new option "-k, --keep" has been added to zupdate. The exit status of zgrep should now be identical to that of grep in case of error.

  •  09 Sep 2013 21:04

Release Notes: The new utility zupdate, which recompresses bzip2, gzip, and xz files to lzip format, has been added.

  •  19 Aug 2013 10:46

Release Notes: The new options "--bz2", "--gz", "--lz" and "--xz" have been added to all utilities. Zutils now provides the runtime configuration file "zutilsrc", which allows the user change the compressor to be used for each format. The checking of the exit status of compressors has been improved. The use of "decompressed" and "uncompressed" in the documentation has been revised.

  •  10 Jul 2013 12:48

Release Notes: The new options "--bz2", "--gz", "--lz" and "--xz" have been added to all utilities. Zutils now provides the runtime configuration file "zutilsrc", which allows the user change the compressor to be used for each format. The checking of the exit status of compressors has been improved. The use of "decompressed" and "uncompressed" in the documentation has been revised.

RSS Recent comments

07 Sep 2009 13:50 Avatar ant_diaz

> It seems that this might be most useful if implemented similarly to mkfs or fsck, in util-linux.
What about "zdiff file1.gz file2.lz"?

03 Sep 2009 03:24 kundor

It seems that this might be most useful if implemented similarly to mkfs or fsck, in util-linux. For instance, if a file is named foo.gz, zcat would use zcat.gz or gzcat if available, before falling back on its built-in decompressor.
That way, if someone makes "thetazip" in the future, they could provide zcat.θz in their package; zutils would support the new format without needing to be updated. Also, maintenance would be in the hands of the developers maintaining the package; they would be best able to keep up with changes in their format.

Just a thought.

Screenshot

Project Spotlight

fcmm

A fast concurrent memoization map.

Screenshot

Project Spotlight

r-nu

An R-Type-based game.