Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
recursively unzip jar, war, ear files
#inspired by
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 -- '{}' \;;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment