What would be the easiest way to convert the text produced by utilities such as
A bit of
echo might do:
for i in $(echo 77f4de214a5423e3c7df8704f65af57c39c55f08424c75c0931ab09a5bfdf49f5f939f2caeff1e0113d9b3d6363583e4830cf40787100b750cde76f00b8cd3ec | sed 's/../& /g'); do echo -ne "\x$i" done > output.bin
sed command is splitting the hex string into bytes and the
echo shows it as hexadecimal character.
Or in a shorter form with
sha512sum output, as suggested in the comment:
echo -ne "$(sha512sum some-file.txt | sed 's/ .*$//; s/../\\x&/g')"