[lug] Recursive Unzip

Matt Thompson thompsma at jilau1.colorado.edu
Wed Apr 5 12:32:01 MDT 2006


Hugh Brown wrote:
> I'd worry about where the unzipped files would end up and whether they'd
> clobber each other or not.

Turns out that isn't a problem for me.  But, I had to slightly alter one 
of the commands.  This:

find . -name "*.zip" -exec unzip {} \;

works except it puts all the unzip'ed files in .  Instead I found I had 
to use:

find . -name "*.zip" -execdir unzip {} \;

That way, all the filed remained in the folders they originated in.

Matt
-- 
root *is* my user account!
    Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
    440 UCB, Boulder, CO  80309-0440
    JILA A510, 303-492-4662



More information about the LUG mailing list