File Display in ASCII and Hexadecimal

The program show_hex displays file blocks in ASCII or hexadecimal. (see code)

Command Usage

show_hex infile

Example

show_hex input.im

Filename: input.im                                           Block#: 2    

  0 - 31  K   O   U   X   X   V   T   T   T   S   Q   O   N   N   J   D   
 32 - 63  >   3   *                                                       
 64 - 95                                                                  
 96 - 127                             !   "   "   "   %   %   %   '   (   
128 - 159 '   '   (   &   (   )   )   '   &   &   '   '   '   '   (   )   
160 - 191 )   (   (   (   )   (   (   '   &   (   '   '   %   '   (   '   
192 - 223 )   )   $   '   (   $   #   &   &   #   #   %   &   '   &   $   
224 - 255 #   '   (   '   '   '   '   %   %   %   '   )   *   )   *   ,   
256 - 287 ,   )   )   (   '   '   )   (   (   (   )   (   &   &   '   '   
288 - 319 #   "   #   #   #   %   %   $   %   $   #   "   !   #   &   &   
320 - 351 #   "   "   !                                                   
352 - 383 !   ,   5   ?   B   G   J   N   P   Q   Q   P   O   Q   O   O   
384 - 415 O   P   R   O   O   P   P   M   I   H   I   I   G   G   G   G   
416 - 447 F   E   E   C   E   E   E   D   C   C   C   D   ?   >   B   Q   
448 - 479 n                                       d   8                   
480 - 511 J   J   J   J   J   J   J   J   J   J   J   J   J   J   J   J   

A)scii H)ex N)ext P)revious S)pecific Q)uit ?