File: cmp_bin.sh

package info (click to toggle)
libslow5lib 1.4.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,284 kB
  • sloc: ansic: 13,123; python: 1,354; sh: 600; makefile: 98; cpp: 40
file content (7 lines) | stat: -rwxr-xr-x 184 bytes parent folder | download | duplicates (3)
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