File: cmp_bin.sh

package info (click to toggle)
libslow5lib 0.7.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,084 kB
  • sloc: ansic: 11,825; python: 1,179; sh: 547; makefile: 90; cpp: 40
file content (7 lines) | stat: -rwxr-xr-x 184 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
for i in $(seq 1 $3); do 
    if ! diff <(head "-$i" $1) <(head "-$i" $2); then 
        echo $i
        diff <(xxd <(head "-$i" $1)) <(xxd <(head "-$i" $2))
        break
    fi
done