aboutsummaryrefslogtreecommitdiff
path: root/batch/old/bindiff.sh
blob: e598c6becf8cfd6751ca0669d48ff6743e159c16 (plain)
1
2
3
4
5
6
7
8
9
10
11
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"