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