hexdump

This is the best I could come up with for printing out a bunch of bytes from a file into a format that you can put in a C program. I couldn't figure out how to get rid of the trailing junk:

hexdump -e '8/1 "0x%02x, " "\n"' file_to_dump.bin

Categories

About this Entry

This page contains a single entry by Mike Tsao published on June 10, 2004 10:22 AM.

Caltrain was the previous entry in this blog.

Noodles is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Powered by Movable Type 4.2-en