On Wed 22 Jan 2020 at 07:12:23 (-0600), Richard Owlett wrote: > I'm running Debian 9.8 with MATE desktop. > I'm exploring a data file with the intention of eventually parsing it > in a useful fashion. > > Just downloaded ghex. I like the display format. > Its tools are inconvenient. > > I need to: > 1. Simultaneously display in _both_ HEX and ASCII format > 2. Know the current offset in *DECIMAL* format. > {knowing the offset also in HEX might be nice} > 3. Goto to an offset - expressed in DECIMAL. > 4. Advance a specific number of bytes. > 5. Search for an ASCII string. > 6. Search for arbitrary sequence of bytes expressed as HEX. > > Suggested tool(s) in Debian repository? > TIA
Take a look at hexdump. Its -C does 1. You'll probably need -e for 2. 3 and 4 will require a decision on how you're splitting your display into lines because that determines what offset strings you can search for. 5 and 6 will also be affected as there will be line breaks to deal with, so it would be better to use an editor in parallel for performing those searches on the original file rather than the hexdump. Cheers, David.