Created
September 21, 2018 07:13
-
-
Save masatokawano/221d6d6c9129179aa8b2a3b3c38b3f3a to your computer and use it in GitHub Desktop.
unzip zip file recursively.
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
find . -name "*.zip" | while read filename; do unzip -o -d "`dirname "$filename"`" "$filename"; done; | |
# or | |
find . -name "*.zip" | xargs -P 5 -I fileName sh -c 'unzip -o -d "$(dirname "fileName")/$(basename -s .zip "fileName")" "fileName"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment