#!/bin/sh hd=${HD:=prog} cat $* | $hd | awk ' BEGIN { nodup=1; group=1 } nodup { # suppress duplicate lines if ($0 == prev) { if (dots == 0) printf "%04x: . . .\n", off dots = off += 16 next } prev = $0 dots = 0 } { # determine the number of bytes, rest is ascii nb = 16 if (length($0) < 48 || length($16) != 2) { for (nb=1; nb