blob: b1f6fe07c6aa0b4e6296d97023d9114a8b0059ed (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
if [[ $# != 2 ]]; then
echo "usage: bindiff <file1> <file2>"
exit 0
fi
#sdiff -w 150 -Hs <(xxd -b "$1") <(xxd -b "$2")
cmp -l "$1" "$2" | awk '{printf "%08X %02X %02X\n", $1, strtonum(0$2), strtonum(0$3)}'
|