Ausam/sys/sysd/run/coredump

Find at most related files.
including files from this version of Unix.

if $2x != x goto ok
if $3x != x goto ok
echo "coredump [ optional od flags ] [ unix file name ] [ core file name ]"
exit
: ok
nm $2 > /tmp/nmtemp
ed - /tmp/nmtemp
1,$s/^/0/
w
q
cat /tmp/nmtemp ^ pr -w132 -5 -h "namelist of "$2" - alphabetical order"
nm -n $2 > /tmp/nmtemp
ed - /tmp/nmtemp
1,$s/^/0/
w
q
cat /tmp/nmtemp ^ pr -w132 -5 -h "namelist of "$2" - numerical order"
ed - /tmp/nmtemp
1,$s/^\(0......\)./\1 /
w
q
od -ow$1 $3 ^ sort -n -m /tmp/nmtemp - ^ pr -w132 -h $2" memory dump"