LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 03: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, 04: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, 12: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 01:24 AM
Samba can create new files and folders but access denied in any new folders k.king Linux - Networking 2 01-15-2006 06:14 AM
Copying hidden files recursively? mrd Linux - General 1 09-30-2005 07:51 AM
how to rm backup files recursively wazoo Linux - Newbie 6 12-31-2004 10:03 AM
partitions: space used/free and folders inside joshfields Linux - Newbie 2 05-18-2004 07:21 PM

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

All times are GMT -5. The time now is 05:36 PM.

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
Open Source Consulting | Domain Registration