Hi folks,
I'm having trouble with a little shell script. Can somebody explain me why I
get 3 times "expr: syntax error" in my console after I run this little script?
#! /usr/local/bin/bash
# testscript
var1="trees.J48" #other value will be rules.Jrip, rules.DecisionTable
len=${#var1}
ind=`expr
On Sat, 9 Apr 2011 06:31:28 -0700 (PDT), Dino Vliet
wrote:
> Hi folks,
> I'm having trouble with a little shell script. Can somebody
> explain me why I get 3 times "expr: syntax error" in my
> console after I run this little script?
>
> #! /usr/local/bin/bash
> # testscript
>
> var1="trees.J4
On Apr 9, 2011, at 6:31 AM, Dino Vliet wrote:
> Hi folks,
> I'm having trouble with a little shell script. Can somebody explain me why I
> get 3 times "expr: syntax error" in my console after I run this little
> script?
>
> #! /usr/local/bin/bash
> # testscript
>
> var1="trees.J48" #other v