[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Endian options for "od"
From: |
Bob Proulx |
Subject: |
Re: Endian options for "od" |
Date: |
Sat, 3 Dec 2005 17:44:23 -0700 |
User-agent: |
Mutt/1.5.9i |
dcoffin AT cybercom DOT net wrote:
> Eric Blake wrote:
> > Thanks for the patch, but it has several problems. First, I'm not
> > sure we need short options, or that the documentation need call
> > out Intel and Motorola (after all, there are other chip
> > manufacturers as well, Motorola has spun off their chip division
> > to Freescale, etc.).
Agreed.
> Actually, the use of "I" for Intel and "M" for Motorola
> is a longstanding tradition. Every TIFF file begins with
> either "II" or "MM" to indicate byte order, and other file
> formats do likewise.
I disagree. This is one area that definitely goes back a long time.
See this reference for example.
http://www.ietf.org/rfc/ien/ien137.txt
I suggest using the standard solution of specifying the size to be
byte sized. This produces the same output on both platforms.
echo abcdefgh | od -t cx1
0000000 a b c d e f g h \n
61 62 63 64 65 66 67 68 0a
0000011
Bob
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Endian options for "od",
Bob Proulx <=