[clue-tech] Re: LUNA: Script for Unzipping?

Joseph A. Nagy, Jr. jnagyjr at joseph-a-nagy-jr.us
Sat Apr 30 11:26:17 MDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sat, Apr 30, 2005 at 11:32:46AM -0500, Joseph A. Nagy, Jr. wrote the following:
> I really am sorry for the x-posting, but I am hoping for an answer asap.
> Follow-up set to me, I'll post the solution I use to both lists in an
> x-posted reply.
> 
> I'm looking for a script that will take "*.zip" and unzip all files matching
> that expression in the current (or specified) directory (as in the case of
> ~/*/.zip which would go into all directories one level below /home/jnagyjr
> and unzip all archives matching *.zip).
> 
> Does any such beast exist (or can exist)? I've tried just using
> 
> $unzip *.zip
> 
> but that always returns:
> 
> Archive:  aajaxsurrealfreak.zip
> caution: filename not matched:  aarcover.zip
> ....
> 
> and never unzips anything.
> 
> TIA!!

for i in `ls *zip`; do unzip "$i"; done

That does the job admirably, now I just need to smack the heck out of the
unzip program (or the archive creators) for asking me, repeatedly, if I want
to overwrite txt files (I do) or rename ttf files (I do). Hehe. :p

- -- 
Joseph A. Nagy Jr.
AIM: pres CTHULHU ICQ: 18115568
Yahoo: pagan_prince Jabber: DarkKnightRadick@(jabber.org|amessage.at)
Skype: jnagyjr01 PGP: 0xCF7EAA67
<http://www.joseph-a-nagy-jr.us> <http://www.jan-jr-ent.biz>
<http://games.joseph-a-nagy-ur.us>
'TIS AN ILL WIND THAT BLOWS NO MINDS
POEE CHAPLIN for the LEGION OF DYNAMIC DISCORD, McMinnville Chapter
Hail Eris! Hail Discord!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0-ecc0.1.6 (GNU/Linux)

iD8DBQFCc7+4oz/s6BFAjRwRAtEAAJ9j98ym/fSaTrqkDG922YhVzAAXlACfWSvM
1yQpyQtfUd0GLU6g431tq10=
=l3HT
-----END PGP SIGNATURE-----



More information about the clue-tech mailing list