Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Unzipper (in the tradition of `uz`, but better). Works for .tgz, .xz, .zip, you name it.
Ruby Shell
branch: master

This branch is 26 commits ahead, 1 commit behind rking:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
test
.gitignore
.rspec
Gemfile
Gemfile.lock
Guardfile
LICENSE.txt
README.md
Rakefile
zu.gemspec

README.md

zu

Unzipper (in the tradition of uz, but better). Works for .tgz, .xz, .zip, .deb, .rpm — you name it. (Literally. If you find an archive that it doesn't open, let me know about it and I'll add that.)

If you have an archive sitting there of format xyz, then zu foo.xyz should take care of it.

It will:

  • Know how to extract the archive (based on extension ┈ though a version that detects based on file is something we're considering)
  • Guard against impoliteness. That is, if the archive only has one file, it will be permitted to extract into the current directory, otherwise it will first mkdir foo; cd foo then extract there. (The directory name will be the archive file minus the extension.)
  • Download the file first, using wget, if the arg starts with http:, https:, or ftp:
  • Remove the archive file if you pass -d

Dependencies

zu doesn't strive to be dependency-free by any means.

For starters, it expects Ruby.

Then it simply delegates to unzip, gunzip, tar, etc.

Not sure if I ever plan on changing this. The main purpose is to optimize the command-line extraction of archives on a configured box.

Installation

  1. Have Ruby 1.8 (with gems) or 1.9
  2. gem install zu

Feedback

Tell us. exad-zu@sharpsaw.org

Something went wrong with that request. Please try again.