1 2 3 4 5 6 7 8
#!/bin/bash if [[ $# != 2 ]]; then echo "usage: bindiff <file1> <file2>" exit 0 fi sdiff -w 150 -Hs <(xxd -b "$1") <(xxd -b "$2")