Last active
December 12, 2016 12:16
-
-
Save surrealroad/9533968be52fa0f942bd0be0fc836734 to your computer and use it in GitHub Desktop.
Given a directory of zip files, loop through each file and extract a jpeg within the zip called {zipname}/{zipname}.jpg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd $SRC; | |
find . -name '*.zip' -exec sh -c 'unzip -j "{}" `basename {} .zip`/`basename {} .zip`.jpg -d "`dirname \"{}\"`"' ';' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment