Arcanelab Blog
text

Recursively unpack zip files in subdirectories Recursively unpack zip files in their…

Recursively unpack zip files in subdirectories

Recursively unpack zip files in their respective directories:

find . -name "*.zip" | while read filename; do unzip -o -qq -d "`dirname "$filename"`" "$filename"; done;

Clean up the zip files:

find . -name "*.zip" | while read filename; do rm "$filename"; done;

I have downloaded the complete ftp.scs-trc.net and c64.rulez.org archives and I wanted to copy the unpacked archives onto an SD card for my Chameleon 64. These commands helped me a great deal to unpack and remove all of the zip files.