summaryrefslogtreecommitdiffstats
path: root/bindiff
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-02-21 21:07:00 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-02-21 21:07:00 +0100
commit01be2df3867ec915fb9610c206cfd0d012674bd5 (patch)
tree6837b7cb31f52cb92b5d06e635b19d535a1c3208 /bindiff
parentb8471ce80da8a0b66e64ca812598c91f43eeefae (diff)
downloadbin-01be2df3867ec915fb9610c206cfd0d012674bd5.tar.gz
bin-01be2df3867ec915fb9610c206cfd0d012674bd5.tar.xz
bindiff: support large files
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'bindiff')
-rwxr-xr-xbindiff3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindiff b/bindiff
index 76b53fa..b1f6fe0 100755
--- a/bindiff
+++ b/bindiff
@@ -5,4 +5,5 @@ if [[ $# != 2 ]]; then
exit 0
fi
-sdiff -w 150 -Hs <(xxd -b "$1") <(xxd -b "$2")
+#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)}'