October 11, 2016

hexdump is awesome

it can dump binary with any specified format

hexdump -e '"optional-start" iterations/number_of_bytes "format" "optional-ending"'

For example:
hexdump -e '"[" 12/1 "%02 " "]\n"' x.bin

will dump 12 bytes in a row with [ in the beginning and ] at the end.

No comments:

Post a Comment