Hi,
   I've got a problem with od command; could anyone check, please?

   After editing and saving a file ...
   [de139642@oc0027726724 ~]$ cat temp.txt
   a1
   b2
   c3
   ... I wanted to browse it in hex mode by use of 'od' command, however I
   failed
   to obtain a correct image:

   [de139642@oc0027726724 ~]$ od -t x temp.txt
   0000000 620a3161 33630a32 00000a0a
   0000012
   [de139642@oc0027726724 ~]$ od -t x2 temp.txt
   0000000 3161 620a 0a32 3363 0a0a
   0000012
   [de139642@oc0027726724 ~]$ od -x temp.txt
   0000000 3161 620a 0a32 3363 0a0a
   0000012
   [de139642@oc0027726724 ~]$
   using vi (hex mode) instead, I got what I expected ....
   1: 6131 0a62 320a 6333 0a0a                 a1.b2.c3..
   Is there an error with od command or do I understand it badly?
   Thanks
   Dieter
   [email protected]

Reply via email to