Hexdump reverse command

前端 未结 4 579
悲哀的现实
悲哀的现实 2021-02-08 14:54

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?

4条回答
  •  孤街浪徒
    2021-02-08 15:18

    I've written a short AWK script which reverses hexdump -C output back to the original data. Use like this:

    reverse-hexdump.sh hex.txt > data
    

    Handles '*' repeat markers and generating original data even if binary. hexdump -C and reverse-hexdump.sh make a data round-trip pair. It is available here:

    • GitHub reverse-hexdump repo
    • Direct to reverse-hexdump.sh

提交回复
热议问题