Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: "unarchive" script/function?



On Wed, Jan 7, 2009 at 17:18, TjL <luomat@xxxxxxxxx> wrote:

> Basically I want to be able to throw any kind of archive/compression
> method and have them all dealt with, so I could theoretically do this:
>
>
>         unarchive file1.zip file2.tar file3.tbz file4.tar.gz
>
>
> and the "unarchive' program would know what to do with each.

> Before I re-invent the wheel, does anyone have something like this
> already written up?

Here's what I use:

http://git.bitwi.se/?p=dot-home.git;a=blob;f=bin/unpack;h=4a02ec410e932e2cc38eb5d48c8f353d6a303a97;hb=HEAD

It requires additional libraries, though, so you'd have to modify it
unless you install them as well (http://git.bitwi.se/?p=zap.git).



Messages sorted by: Reverse Date, Date, Thread, Author