diff options
Diffstat (limited to 'batch/old/bindiff.sh')
-rwxr-xr-x | batch/old/bindiff.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/batch/old/bindiff.sh b/batch/old/bindiff.sh new file mode 100755 index 0000000..e598c6b --- /dev/null +++ b/batch/old/bindiff.sh @@ -0,0 +1,12 @@ +#!/bin/bash + + +if [ "x$1" = "x" ] || [ "x$2" = "x" ]; then + echo "$0: [FILE1] [FILE2]" + exit 1 +fi + +xxd "$1" > "$1.hex" +xxd "$2" > "$2.hex" +diff -du "$1.hex" "$2.hex" 2>&1 | less +rm -f "$1.hex" "$2.hex" |