tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: host endianness
On Mon, Feb 08, 2010 at 08:19:34AM +0000, David Holland wrote:
> On Mon, Feb 08, 2010 at 09:44:35AM +0200, Alan Barrett wrote:
> > > echo -n 'C!' | od -h | sed 's/[^1234]*//;s/2143/4321/p;d'
> >
> > Host shells might not support "echo -n", so please use printf "%s" "C!"
> > instead.
>
> 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.
-is
Home |
Main Index |
Thread Index |
Old Index