I wrote small bash script
for (( j=10;j<20; j++ ))
do
./b5 $j $[ $1 * 3 ]
done
Which should execute program b5 and send two parameters, $j and $1 multiplied by 3.
When I try to run it, i get:
* 3 : syntax error: operand expected (error token is "* 3 ")
How should one do it?