Today,
Nico asked me about how the dc(1) shell magic a la 'echo 28832971807093258P | dc' works. I didn't know it in the first place, but after some manpage reading, I understood it, and tried to explain it to him. I don't know whether he fully understood it (and if not, it was definitely not his fault), but my next idea was to automatize that, i.e. write a script that takes one string and automatically generates the shell one-liner to print out that string. And, well, here it is:
span style="color: #666666; font-style: italic;">#!/bin/bash
"ibase=16; $(echo -n "" | hexdump -e '"" 4/1 "" ""' | sed 's/ //g')0A""echo ${output}P | dc"
And here's how it works:
$ ./dc-fun.sh ak@synflood.at
echo 505828119445447424943077054048465930P | dc
$ echo 505828119445447424943077054048465930P | dc
ak@synflood.at
$