Subject: Re: echo weirdness
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 02/19/2004 21:49:52
On Thu, Feb 19, 2004 at 05:28:02PM +0000, Patrick Welche wrote:
> On Wed, Feb 18, 2004 at 02:29:01PM +0000, Andreas Kahari wrote:
> > Using decimal->octal conversion, and then getting the
> > corresponding character...
> >
> > i=65; printf "\\$(printf "%o" $i)"
>
> Printf twice! Foolishly I kept trying to it in one.. (CHR$ in BBC Basic ;) )
i=65;printf '\'$(($i/64))$(($i/8%8))$(($i%8))
David
--
David Laight: david@l8s.co.uk