2

I was just introduced to xxd today. See link. I am very familiar with the QNX hd and odcommands, both of which will take input and create a hex dump (or octal dump if you like). See hd and od.

What I am looking for is the xxd -r capability to go backwards from a hexdump to a binary file, but apparently QNX doesn't have that, or I'm not reading the description appropriately. Can someone point me in the right direction?

This is regarding QNX Neutrino 6.4.1 or newer.

kmort
  • 724
  • 1
  • 8
  • 19

1 Answers1

2

I would try to compile xxd for QNX instead of trying to find an alternative: ftp://ftp.uni-erlangen.de/pub/utilities/etc/xxd-1.10.tar.gz

The source is small (less than 1000 lines) and it has defines for windows and amiga so I expect it's fairly portable.

Frederik Deweerdt
  • 3,722
  • 17
  • 18
  • Excellent! Thanks for the link to the source. That was easy. Though QNX choked on the makefile, a simple `qcc xdd.c` and I was in business. I feel silly for not thinking of this myself. – kmort Apr 17 '13 at 03:06