shell programming question: help with expr command

2011-04-09 Thread Dino Vliet
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

Re: shell programming question: help with expr command

2011-04-09 Thread Polytropon
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

Re: shell programming question: help with expr command

2011-04-09 Thread Devin Teske
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