LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-21-2006, 04:08 PM   #1
jessdog9001
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian Unstable
Posts: 14

Rep: Reputation: 0
How to unzip files recursively inside folders?


Hi,
I've been downloading a lot of mod music lately, and much of it comes in .zip files. So I have a big directory filled with sub-directories, each of which has numerous .zip files inside. Is there an easy way to unzip all of the files inside these folders? And also, is there an easy way to remove all of the .zip files afterwards? Thanks,

Jesse
 
Old 03-21-2006, 05:10 PM   #2
zeitounator
Member
 
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262

Rep: Reputation: 30
Code:
cd path/to/base/dir/were/zip/files/are/located
find . -name "*.zip" -exec unzip {} \; -exec /bin/rm {} \;
 
Old 03-22-2006, 01:59 PM   #3
jessdog9001
LQ Newbie
 
Registered: Mar 2006
Distribution: Debian Unstable
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks a million, I haven't had a chance to try it but it looks like it will work. I guess the answer was simpler than I expected.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recursively move files michaelsanford Linux - General 5 02-17-2016 02:24 AM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 07:14 AM
Copying hidden files recursively? mrd Linux - General 1 09-30-2005 08:51 AM
how to rm backup files recursively wazoo Linux - Newbie 6 12-31-2004 11:03 AM
partitions: space used/free and folders inside joshfields Linux - Newbie 2 05-18-2004 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration