8 Feb 2010 09:29
Re: host endianness
Ignatios Souvatzis <is <at> netbsd.org>
2010-02-08 08:29:59 GMT
2010-02-08 08:29:59 GMT
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
RSS Feed