summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-04-10 12:40:10 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-04-10 12:40:10 +0200
commit35dda678c52bb2f27b2f5b1d07b5853f74234644 (patch)
tree5381a1189026ccf5dfb4682b47f601b0495ee759
parent023216ec92d254697059c24855b56adeafdef9c5 (diff)
downloadbin-35dda678c52bb2f27b2f5b1d07b5853f74234644.tar.gz
bin-35dda678c52bb2f27b2f5b1d07b5853f74234644.tar.xz
add bindiff
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-xbindiff8
1 files changed, 8 insertions, 0 deletions
diff --git a/bindiff b/bindiff
new file mode 100755
index 0000000..a289870
--- /dev/null
+++ b/bindiff
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [[ $# != 3 ]]; then
+ echo "usage: bindiff <file1> <file2>"
+ exit 0
+fi
+
+sdiff -w 150 -Hs <(xxd -b "$1") <(xxd -b "$2")