Skip to content

Instantly share code, notes, and snippets.

@marcogrcr
Created March 13, 2024 00:26
Show Gist options
  • Save marcogrcr/5bf9c569f7eaae2111165a0f2a1b0862 to your computer and use it in GitHub Desktop.
Save marcogrcr/5bf9c569f7eaae2111165a0f2a1b0862 to your computer and use it in GitHub Desktop.
Extract all nested jar files
#!/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