Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
"unarchive" script/function?
- X-seq: zsh-users 13658
- From: TjL <luomat@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: "unarchive" script/function?
- Date: Wed, 7 Jan 2009 11:18:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=wZLwNcwJONQElYKCNrKPd8iEBFriYruLMNJ36o+RVeo=; b=b+qBl9fL4nBvMvKvUdDz5mwKvXmXkPNz/jL7j1ZUBlhOkwRiYmrA2qKmZoqgBeFbOU DzXGKKU0dzFDaGjnV8XVJPaLNftEzk1uVidgGW7MqbeASNXvSCihwLACLlSdwBLwhVlY 0kt4RXzLnAYRwlDemZqlKTbY5XIkFcsStV064=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=xVc3BbJG50oo6mSgbBYoLVlQFrJLz6i1ZGo9SvqyI7jnLwugZ6TjD9Mg+dfgnKMVGz I3jHki28Hu12b+p5XdlQjoqOan9J2o4SvFBVeOtEp9VMklKCRtTetuH0XwAvaAQDo3dA s1289W3g1JPw0I1ZpOG/vI6YanDcVXiY4Jexg=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Years ago I remember seeing a function that someone had posted (to
this list, I believe) which would unarchive a whole bunch of different
formats.
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.
I wrote something of my own, but I can't get it to figure out what to
do when there is a .tar.gz instead of a .tgz (i.e. two file
extensions). It ends up seeing .gz and just gunzip'ing. I'm not great
at regex matching, and I'm sure there's a better way than what I'm
doing.
Before I re-invent the wheel, does anyone have something like this
already written up?
TjL
Messages sorted by:
Reverse Date,
Date,
Thread,
Author