OT-ish - converting hex output to binary on a Unix platform

From: Tony Duell <ard_at_p850ug1.demon.co.uk>
Date: Fri Jul 30 16:41:07 2004

>
>
> Silly question, but maybe someone here's found a nice way of doing this
> using standard Unix tools...

I am not aware of a standard unix utility to do this, but it shouldn't be
too hard to do it in perl or C.

> (files are in the format of 16 pairs of uppercase hex digits per line,
> with a trailing space after every pair - even the last one on a line)
>
> I'm rapidly coming to the conclusion that I need to remember some C
> again - and I've only just finished emptying my brain of it after the
> last time I needed to code in it a couple of months ago :-)

I know that when I wanted to convert some ROM dumps to/from Intel-hex
format, it didn't take me long to knock up a rough-and-ready pair of
programs to do this (rough-and-ready meaning that they assumed that
intelhex lines were less than 256 characters long -- which is certainly
the case with my (commercial) EPROM programmer), etc).

And I am not a programmer...

-tony
Received on Fri Jul 30 2004 - 16:41:07 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:36:53 BST