At 15:00 14/01/02, Richard Russon wrote:
> > or hexdump, etc.
>
>That's what I use. It's extremely configurable.
>I have aliased hexdump as:
>
>alias dump='hexdump -f ~/.format'
>
>and created a file ".format" which contains:
>
>"%06.6_ax "
>8/1 "%02X " " - " 8/1 "%02X "
>" " "%_p"
>"\n"
>
>
>Now my output looks like:
>
>000000 46 49 4C 45 2A 00 03 00 - 0D 6E 06 02 00 00 00 00 FILE*....n......
>000010 01 00 01 00 30 00 01 00 - 90 01 00 00 00 04 00 00 ....0...........
>000020 00 00 00 00 00 00 00 00 - 06 00 26 00 00 00 00 00 ..........&.....
Cool, thanks for the tip. I have been wondering how to do this output
format with hexdump... never bothere to go to such depths...
hexedit has the same output (pretty much) but it has the advantage of being
able to actually edit in place as well as seek to wherever you want and it
even has a "sector" mode where you can seek to any sectors with the obvious
advantage that when you read off a mapping pairs array for example you can
decompress it by hand on a piece of paper and then immediately seek to the
right sectors to look at the contents. In sector mode it's just "press
enter", enter sector number to seek to, "press enter"... I guess it boils
down to hexedit being interactive and hexdump only being a dump tool, but
every one has their pet tools... (-;
Anton
--
"I've not lost my mind. It's backed up on tape somewhere." - Unknown
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS Maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/
|