digital adj. Having digits.     peer n. A comrade; a companion; a fellow; an associate. inmotion    
   
Recent Articles
Stop DNSMasq From Forwarding Local Hostnames
Saturday, September 25, 2010
Securing your Wireless LAN
Wednesday, August 18, 2010
Some tips and things you might not know about your wireless network.
Using Different Subversion Client Versions
Wednesday, August 18, 2010
Handling a Subversion Repository URL Change
Sunday, May 3, 2009
If your repository URL changes, you can use the following command to fix existing snapshots.
vfat Mounts Default to Lowercase Shortnames
Tuesday, April 21, 2009
I want a "this is brain-damage" quote from Linus for this mess.
VirtualBox or VMWare Virtual Machine at Login
Sunday, April 12, 2009
How to start a virtual machine in X when a user logs in.
Dialog Progress Bar Through Pipe
Sunday, April 12, 2009
How to use dialog to display a script progress bar and communicate progress to it through a named pipe.
Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.

Just do it.
- Nike

Projects-User...-File Hex...

File Hex Dump Utility

Tuesday, October 11, 2005 by digitalpeer

This simple hex dump utility will print data of a file/device on Linux given an offset and optionally a length.

Hex Dump Utility
hd [OPTIONS] FILE
   -o offset  The offset byte to start printing at (defaults to 0)
   -l length  The number of bytes to print total (defaults to eof).
   -b bytes   The number of bytes to print per line (defaults to 16).
   -j         Just print hex data.
   -h         This help message.

Example

$ ./hd -o 5 -b 16 -l 65 hd.c
    5: 78 20 64 75 6d 70 20 75 74 69 6c 69 74 79 2e 0a | x dump utility.. |
   21: 20 2a 0a 20 2a 20 28 63 29 20 32 30 30 35 20 4a |  *. * (c) 2005 J |
   37: 2e 44 2e 20 48 65 6e 64 65 72 73 6f 6e 20 28 64 | .D. Henderson (d |
   53: 69 67 69 74 61 6c 70 65 65 72 2e 63 6f 6d 29 0a | igitalpeer.com). |
   69: 20                                              |                  |

Attached Files
hd-0.1.tar.gz, uploaded Tuesday, December 19, 2006

Submit Comment to This Article - Be the first!
Please post a comment if you have something to add, find something wrong, or would like more information on the topic at hand. Do not use the comment form to contact the author about unrelated concerns!

Name: Email (optional):
Enter verification number here: