Skip to content

Instantly share code, notes, and snippets.

@dw72
Last active March 18, 2018 13:13
Show Gist options
  • Save dw72/afd72406f68b4aff018ff54b220edaf2 to your computer and use it in GitHub Desktop.
Save dw72/afd72406f68b4aff018ff54b220edaf2 to your computer and use it in GitHub Desktop.
Extract all zip archives in subdirectories
find . -name '*.zip' -print0 | xargs -0 -I{} -n1 -P4 /bin/bash -c 'file="{}"; cd "${file%/*}"; unzip "${file##*/}"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment