Write Hex to a File from Bash

$printf '\x78\x56\x34\x12' > binfile
$perl -e 'print pack "H*", "78563412"' > binfile

$ od -x binfile 
0000000 5678 1234

No comments: