Skip to content

Instantly share code, notes, and snippets.

@EugW
Created May 7, 2020 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EugW/bbe4ce3b299c4f25d2d9e51b180ef2da to your computer and use it in GitHub Desktop.
Save EugW/bbe4ce3b299c4f25d2d9e51b180ef2da to your computer and use it in GitHub Desktop.
Differences in zip
echo "$1 vs $2"
mkdir temp/
unzip -q $1 -d temp/$1.d/
unzip -q $2 -d temp/$2.d/
cd temp
cd $1.d
find -type f > ../$1.txt
cd ..
cd $2.d
find -type f > ../$2.txt
cd ..
diff $1.txt $2.txt
cd ..
rm -rf temp/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment