But looking at the output is confusing.

I guess you never worked with data files (whether text or binary) on a VAX or other DEC OS. Maybe this format was commonly used on other systems of the same era besides DEC, but that's where I learned it, and the first time I had to use a non-DEC OS, where I didn't have this sort of hex-dump output format (or I just couldn't find a tool to do it), I wrote my own (in C) -- which I'm still using almost daily, 20 years later.

It's a remarkably useful display technique, whether you're doing a quick visual diagnosis of an unfamiliar data file, or a fine-grained, detailed inspection of output from a program you're writing (or reverse-engineering).

I tend to prefer having the central hex columns be bytes by default, rather than quads (though an option to change the size of the hex "word" is vital, as well as switching to decimals or even floats on occasion). But just having that together with the ASCII content right along side it is so handy in so many ways...


In reply to Re: What is this question asking? by graff
in thread What is this question asking? by Herkum

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.