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

Re: "unarchive" script/function?



In the last episode (Jan 07), Vin Shelton said:
> tar now natively understands (at least) gzip, bzip2, lzma and compress.
> 
> so, eg, tar tvf foo.tgz "just works".
> 
> See http://www.gnu.org/software/tar/ for details.  tar does not seem
> to understand zip format, though.

bsdtar does, in addition to ar, cpio, and iso9660 formats:

  http://people.freebsd.org/~kientzle/libarchive/

But as far as doing it in zsh scripting, I think you want a big case
statement matching on things like *.zip, *.(tgz|tar.gz), etc, with the
longer matches up front so they get hit first.

-- 
	Dan Nelson
	dnelson@xxxxxxxxxxxxxxx



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