ADSM-L

Re: Need a quick help on a script.

2004-03-25 06:53:19
Subject: Re: Need a quick help on a script.
From: "Stephen E. Bacher" <seb AT DRAPER DOT COM>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 25 Mar 2004 06:52:51 -0500
>>>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

<Prev in Thread] Current Thread [Next in Thread>