>>>substring=${bigstring:0,2}

I wrote:

>>What shell are you using?  This does not work in Bourne, C, Korn or Bourne
>>Again shell as far as I can tell.

"Doyle, Patrick" <[EMAIL PROTECTED]> wrote:

>BASH

Aha.  I checked again and it does work in bash - but the correct syntax
is ${bigstring:0:2} - that's what threw me.

 - seb

Reply via email to