Last active
January 26, 2023 08:49
-
-
Save jxsl13/433afb82d9587d9cdd66960a1ef20cfa to your computer and use it in GitHub Desktop.
shell script for seeing the difference between two tar.gz file contents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# tardiff tar1.tar.gz tar2.tar.gz | |
diff -q <(tar -xOvzf $1 | rev | cut -d\/ -f1 | rev) <(tar -xOvzf $2 | rev | cut -d\/ -f1 | rev) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment