Re: Tool to reverse "od"?

From: AlV (skweek_at_no.spam)
Date: 08/24/04


Date: Tue, 24 Aug 2004 09:53:01 +0200

Josef Moellers wrote:
> There are indeed numerous programs that convert between binary and text
> back and forth, I even hacked up a couple of them myself, if the need
> arose.
>
> The question was really academic in the first place, as the other day I
> had to manipulate a master boot record that I had od'd to the screen
> before (scrolled back, cut-and-pasted screen contents into a file ...).
> I ended up hacking up a quick-and-dirty Perl script that did the job,
> but later wondered whether anything full-blown (e.g. reversing od using
> the very same options and taking care of repeating lines) already existed.
> I fancied that it wouldn't be named "do" and googling for "unod"
> produced numerous pages in Polish ...

May I make a suggestion?

For this kind of purpose, I use hexl-mode in GNU Emacs.

This mode lets you edit a binary file by modifying hexadecimal values in
the left part of the buffer and seeing the result on the right part of
the buffer: quite neat in my humble opinion :o)

Guess it would work with a MBR, with the precious help of dd, of course...

Have a nice day,