> If you look more closely at the alignment of the characters to the hex  
> values you will see that xd thinks Q has character code 0x525 and R  
> has character code 3. It should look more like
> 
> % xd -c -x bad
> 0000000  e0Q R S  \n
>       0  e0515253 0a000000
> 0000005

The -c and -x formats are not intended to align.
If you want hex codes aligned with characters, use -b.

% echo ABCD | xd -c -x
0000000   A  B  C  D \n
      0  41424344 0a000000
0000005 
%  

Russ


Reply via email to