Hi Michael,
> I wound up writing a "findnull.c" code because grep'ing for NUL
> apparently won't work due to C-issues. SED can do things, but
> I couldn't get it to work.
perl avoids C's strings. sed does too for its input.
$ dc -e 16i616263006465660A414243014445460AP | hd
00000000 61 62 63 00 64 65 66 0a 41 42 43 01 44 45 46 0a
|abc.def.ABC.DEF.|
00000010
$ dc -e 16i616263006465660A414243014445460AP | LC_ALL=C perl -ne '/\x00/
and print' | sed -n l
abc\000def$
$ dc -e 16i616263006465660A414243014445460AP | LC_ALL=C perl -ne '/\x01/
and print' | sed -n l
ABC\001DEF$
$
Having read the thread, though only once, I'm confused by:
- how many versions of nmh there are — distro, Emacs, and personal;
- what ones introduce NULs;
- if changing the length of the --- header/body separator alters the
number of NULs.
--
Cheers, Ralph.