So, how do you spend 1 process writing 1 binary byte? (I would have used xxd for...

@drj@typo.social

So, how do you spend 1 process writing 1 binary byte? (I would have used xxd for this, but i couldn't find out how to install it on NetBSD). Well, imagine you have a file with hex numbers in and you want a binary.

First extract the hex numbers: grep -x .. tencon.bdf (the BDF input is fortunate that all the relevant hex numbers are one byte, 2 hdigits, and appear each on a line of their own)
Then convert each hex number to a printf line that would print it:
| sed 's/^/printf \\\\x/'
then pipe that through shell to run all the prints commands, one per byte :)

In fact i can do most of it in sed:
sed -n '/^..$/s/^/printf \\\\x&/p' tencon.bdf
which outputs lines like
printf \\x3E
printf \\x41
printf \\x55
printf \\x41
which i then pipe through shell: « | sh > output »