Hod

Hod is a simple hexadecimal/octal file dumper. written in C.
    $ hod

    -Hexadecimal or Octal dumper -
    hod - 1.0 by muquit@semcor.com (1995)

    Usage: hod filename or
           hod [options ...] filename

    Where options include:
      -o filename            for Octal dump
      -h                     Shows this help
      -V                     Shows version number

Example (hex)

$ hod test.dat

          0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
       0: 74 68 69 73 20 69 73 20 61 20 74 65 73 74 31 0a  this is a test1.
      10: 74 68 69 73 20 69 73 20 61 20 74 65 73 74 32 0a  this is a test2.
      20: 74 68 69 73 20 69 73 20 61 20 74 65 73 74 33 0a  this is a test3.
      30: 74 68 69 73 20 69 73 20 61 20 74 65 73 74 34 0a  this is a test4.

Example (oct)

$ hod -o test.dat

          0   1   2   3   4   5   6   7    01234567
       0: 164 150 151 163 040 151 163 040  this is 
      10: 141 040 164 145 163 164 061 012  a test1.
      20: 164 150 151 163 040 151 163 040  this is 
      30: 141 040 164 145 163 164 062 012  a test2.
      40: 164 150 151 163 040 151 163 040  this is 
      50: 141 040 164 145 163 164 063 012  a test3.
      60: 164 150 151 163 040 151 163 040  this is 
      70: 141 040 164 145 163 164 064 012  a test4.

Download source
Muhammad A Muquit
Home Page