So some idiot decided to put a zip file in a zip file (possibly in a zip file). Well it's bullshit trying to find anything in such a silly file structure, so I was wondering if anyone knew a simple command line to extract everything. Essentially I want to change each .zip file to just a folder. There are well over 10000 files I'm dealing with.
http://puu.sh/1awBFHere's a test file that has 5 idiotic layers.
7z x -r *.zip doesn't work. In fact it extract to the current directory. Ideally I want to extract ./Layer_1.zip to ./Layer_1, if that makes any sense.
Bonus points for a windows applicable solution.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
Unless there are multiple zip files at each layer, what's the problem? Your example has only a single zip file in each layer. Also, even if it does have multiple zip files in a single layer, it seems likely they would all be part of the same zip file, so an unzip utility should easily be able to handle that.
None.
The easiest way to do that would probably be with a scripting language, maybe a more shell-oriented one.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch