Created
September 12, 2016 20:12
-
-
Save kd7lxl/c374668edaec50dc17f835a902f8b627 to your computer and use it in GitHub Desktop.
Compares two binary files
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/sh | |
A=`mktemp` | |
B=`mktemp` | |
hexdump -C "$1" > $A | |
hexdump -C "$2" > $B | |
diff -U 0 --label "$1" --label "$2" $A $B | less | |
rm $A $B |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment