Created
March 13, 2024 00:26
-
-
Save marcogrcr/5bf9c569f7eaae2111165a0f2a1b0862 to your computer and use it in GitHub Desktop.
Extract all nested jar files
This file contains 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
#!/bin/sh | |
find . -name '*.jar' | while read -r jar_path; do | |
jar=$(basename "$jar_path") | |
folder=$(dirname "$jar_path") | |
cd "$folder" || exit 1 | |
unzip -o "$jar" | |
cd - || exit 1 | |
done | |
echo 'Done!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment