#!/bin/sh old=$1 new=$2 tmp=$3 for file in `cd $old ; ls` do echo ===== $file ===== jar tf $old/$file | sort > $tmp/$file.old jar tf $new/$file | sort > $tmp/$file.new diff $tmp/$file.old $tmp/$file.new | tee $tmp/$file.diff done