How to create a hex dump of file containing only the hex characters without spaces in bash?

前端 未结 6 1344
后悔当初
后悔当初 2020-11-30 17:22

How do I create an unmodified hex dump of a binary file in Linux using bash? The od and hexdump commands both insert spaces in the

6条回答
  •  孤独总比滥情好
    2020-11-30 17:38

    The other answers are preferable, but for a pure Bash solution, I've modified the script in my answer here to be able to output a continuous stream of hex characters representing the contents of a file. (Its normal mode is to emulate hexdump -C.)

提交回复
热议问题