Skip to content

Instantly share code, notes, and snippets.

@adrianblade
Created September 27, 2023 17:50
Show Gist options
  • Save adrianblade/b5e0f2244220ec7152f38d66d6be084d to your computer and use it in GitHub Desktop.
Save adrianblade/b5e0f2244220ec7152f38d66d6be084d to your computer and use it in GitHub Desktop.
#!/bin/sh
WAR_MASTER="X.war"
WAR_CANDIDATE="Y.war"
rm -r /tmp/comparator
mkdir /tmp/comparator
unzip $WAR_MASTER -d /tmp/comparator/tmp1
unzip $WAR_CANDIDATE -d /tmp/comparator/tmp2
ls -l /tmp/comparator/tmp1
ls -l /tmp/comparator/tmp2
diff -qr /tmp/comparator/tmp1/ /tmp/comparator/tmp2/ | grep "Only in"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment