Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Given a directory of zip files, loop through each file and extract a jpeg within the zip called {zipname}/{zipname}.jpg
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