od -x

Matthew Smith matts@bluesguitar.org
Mon Apr 15 10:50:00 GMT 2002


od -xIntel processors are little endian.

cheers,
-Matt Smith


  The od utility doesn't seem to behaving properly. With the -x option, it
reverses bytes e.g. 5245 4f43 when it should be 4552 434f. With no options,
I can detect no correspondence to the actual input data and no pattern
whatsoever. What character is an octal 503? The -c option works, but is not
so useful.

  $ tail -1 814out_20020412164115.pgp.262176.decr
  P.||20020412|||||24|ERCO

  $  od -x 814out_20020412164115.pgp.262176.decr | tail -3
  3163560 3032 3230 3430 3231 7c7c 7c7c 327c 7c34
  3163600 5245 4f43
  3163604

  $ od 814out_20020412164115.pgp.262176.decr | tail -6
  3163500 031463 030461 053574 052524 052040 051504 076120 030460
  3163520 033467 030464 034462 076064 052515 052524 046101 042440
  3163540 042516 043522 020131 052127 020125 027114 027120 076174
  3163560 030062 031060 032060 031061 076174 076174 031174 076064
  3163600 051105 047503
  3163604

  $ od -c 814out_20020412164115.pgp.262176.decr | tail -3
  3163560   2   0   0   2   0   4   1   2   |   |   |   |   |   2   4   |
  3163600   E   R   C   O
  3163604

  James Moore




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list