tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: host endianness



On Tue, Feb 09, 2010 at 06:10:07AM +0000, David Holland wrote:
> On Mon, Feb 08, 2010 at 09:29:59AM +0100, Ignatios Souvatzis wrote:
>  > > Why not just printf "C!"? However,
>  > > 
>  > >    echo 'C!' | od -N 2 -h | sed 's/[^1234]*//;s/2143/4321/p;d'
>  > > 
>  > > is somewhat tidier.
>  > 
>  > If this's s'ppossed to be host os and machine independent:
>  > 
>  > No 'od -h' on Solaris 8, neither on 10.
> 
> Spoilsport :-)

Works fine with 'od -x' instead. What do our standards lawyers say?

        -is


Home | Main Index | Thread Index | Old Index