$printf '\x78\x56\x34\x12' > binfile $perl -e 'print pack "H*", "78563412"' > binfile $ od -x binfile 0000000 5678 1234
Write Hex to a File from Bash
Subscribe to:
Post Comments (Atom)
Fedora, Red Hat, CentOS, Linux
$printf '\x78\x56\x34\x12' > binfile $perl -e 'print pack "H*", "78563412"' > binfile $ od -x binfile 0000000 5678 1234
No comments:
Post a Comment