1
0
mirror of https://github.com/digarok/hihex.git synced 2024-12-03 16:49:33 +00:00
Like hexdump, but allows you to see "high bit" ASCII in your files. Also great for diffs!
Go to file
2020-07-17 14:18:58 -05:00
.github add sponsors file 2020-07-17 14:18:58 -05:00
.gitignore Initial commit 2015-07-08 13:18:17 -05:00
.goreleaser.yml goreleaser v0.0.0 release 2019-11-04 20:16:34 -06:00
hihex.go goreleaser v0.0.0 release 2019-11-04 20:16:34 -06:00
LICENSE Initial commit 2015-07-08 13:18:17 -05:00
README.md goreleaser v0.0.0 release 2019-11-04 20:16:34 -06:00

hihex

The hihex utility works like the hexdump command with a special addition to view "high-bit ascii". This allows you to view the character output of ASCII values that have the high bit set wheras hexdump doesn't understand these values.

This is particularly useful for examining binary files from older computers, such as the Apple II, where they would commonly use the high bit versions of characters to display text in other modes such as inverse.

Also great for diffs!

Still don't get it?

Here's a quick example. Look at this file with hexdump...

    $ hexdump -C binfile
    00000000  48 45 4C 4C 4F 20 57 4F  52 4C 44 21 21 21 21 21  |HELLO WORLD!!!!!|
    00000010  D3 C5 C3 D2 C5 D4 A0 CD  C5 D3 D3 C1 C7 C5 BA A9  |................|

See how the second line is filled with periods? LAME!!! It could be ASCII with the high bit set, as was common on the Apple II.

Now you can see the whole picture with hihex...

    $ hihex binfile
    000000  48 45 4C 4C 4F 20 57 4F 52 4C 44 21 21 21 21 21  HELLO WORLD!!!!!
    000010  D3 C5 C3 D2 C5 D4 A0 CD C5 D3 D3 C1 C7 C5 BA A9  SECRET MESSAGE:)