#!/bin/sh # ZipDiff.sh # Chieh Cheng # 2007-03-13 # http://www.CynosureX.com/ # GNU General Public LIcense (GPL), Version 2, June 1991 scriptName=`echo $0 | sed s/\\\\/.*\\\\///g` if [ $# -lt 2 ] then echo " Usage: $scriptName \"file 1\" \"file 2\"" exit fi file1="$1" file2="$2" tmp1=`GetTempPathName.ksh ${scriptName}` tmp2=`GetTempPathName.ksh ${scriptName}` unzip -v "${file1}" > "${tmp1}" unzip -v "${file2}" > "${tmp2}" diff "${tmp1}" "${tmp2}" rm "${tmp1}" "${tmp2}"