Skip to content

Instantly share code, notes, and snippets.

@kd7lxl
Created September 12, 2016 20:12
Show Gist options
  • Save kd7lxl/c374668edaec50dc17f835a902f8b627 to your computer and use it in GitHub Desktop.
Save kd7lxl/c374668edaec50dc17f835a902f8b627 to your computer and use it in GitHub Desktop.
Compares two binary files
#!/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