Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andrewrembrandt/8036b1250060a093443f32b2fb83f7ca to your computer and use it in GitHub Desktop.
Save andrewrembrandt/8036b1250060a093443f32b2fb83f7ca to your computer and use it in GitHub Desktop.
#!/bin/bash
find ~/.ivy2/cache -iregex '.*/docs/.*\.jar' | while read line; do
echo "Extracting $line"
filename=${line##*/}
dirname=${filename%.*}
mkdir -p $dirname
cd $dirname
jar xf $line
cd ..
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment