Re: Need a quick help on a script.
2004-03-25 06:53:19
>>>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" <pat.doyle AT EAGLESTAR DOT IE> 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
|
|
|