new tool: args2env
[hband-tools.git] / user-tools / PMhexdiff
blobe56d9efcb424c9dd66f4ca9cc087ef6448e8b7a1
1 #!/bin/bash
3 true <<EOF
4 =pod
6 =head1 NAME
8 PMdirindex - Poor man's hex diff viewer
10 =cut
12 EOF
14 opts=''
15 f1=''
16 f2=''
18 while [ -n "$1" ]
20 if [ "${1:0:1}" = "-" ]
21 then
22 opts="$opts $1"
23 else
24 [ -z "$f1" ] && f1="$1" || f2="$1"
26 shift
27 done
29 ${DIFF:-diff} $opts <(hd -v "$f1") <(hd -v "$f2")