Skip to content

Instantly share code, notes, and snippets.

@gmena
Last active November 25, 2023 06:48
Show Gist options
  • Save gmena/fea8d5c632a8f618b98020dafdfa0a28 to your computer and use it in GitHub Desktop.
Save gmena/fea8d5c632a8f618b98020dafdfa0a28 to your computer and use it in GitHub Desktop.
For each zip file found extract its contents under a similarly named directory
find . -name '*.zip' -exec sh -c 'unzip -d "`dirname \"{}\"`"/"`basename \"{}\" .zip`" "{}"' ';'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment