Skip to content

Instantly share code, notes, and snippets.

View andrewrembrandt's full-sized avatar
📏

Andrew Rembrandt andrewrembrandt

📏
View GitHub Profile
#!/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 ..