The hexdump command converts any file to hex values.
But what if I have hex values and I want to reverse the process, is this possible?
If you have only a hexdump generated with hexdump
you can use the following command
sed -E 's/ /: /;s/ (..)(..)/ \2\1/g;$d' dump | xxd -r
The sed
part converts hexdump
's format into xxd
's format, at least so far that xxd -r
works.
Known Bugs (see comment section)
hexdump
ed using a *
.