-
-
Save SimonGivre/5de7367962b295690545e8129c9f0de7 to your computer and use it in GitHub Desktop.
recursively unzip jar, war, ear files
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
#inspired by http://unix.stackexchange.com/questions/4367/extracting-nested-zip-files | |
while [ "`find . -type f -name '*.?ar' | wc -l`" -gt 0 ]; do | |
find -type f -name "*.?ar" \ | |
-exec mkdir -p '{}.dir' \; \ | |
-exec unzip -o -d '{}.dir' '{}' \; \ | |
-exec rm -- '{}' \; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment