- # unjar all jar files found in $JARFILES into $CLASSES:
export CLASSES=~/unjarred; export JARFILES=.; mkdir -p $CLASSES; cd $CLASSES; find $JARFILES -name \*jar -exec jar -xf {} \;
- # recursive decompilation of all class files in $CLASSES, storing their
decompiled version in $DECOMPILED:
export CLASSES=~/unjarred; export DECOMPILED=~/decompiled; cd $CLASSES; mkdir -p $DECOMPILED; find -name \*class -exec jad -b -dead -o -s java -safe -ff -lnc -r -d $DECOMPILED {} \;