Last Updated: May 02, 2019
·
1.322K
· shime

2013 - a year in which you stop guessing tar flags

Looks familiar?

Worry no more! Use extract and prosper!

Usage

$ extract [FILES]

Supported extensions

The script currently supports:

  • tar.xz
  • tar.bz
  • tar.bz2
  • tar.gz
  • txz
  • tgz
  • tbz
  • tbz2
  • tb2

Installation

First method

Place it in your $PATH.

Second method

Do you trust me? You should, I'm a nice guy.

$ curl -fsSL https://gist.github.com/shime/5908634/raw/install | bash -e

If you get curl: (23) Failed writing body (0 != 462), it means you don't have write permissions to /usr/local/bin.

This will make it go away:

$ curl -fsSL https://gist.github.com/shime/5908634/raw/install | sudo\
  bash -e

Enjoy!