Here is an example for my customized program which is executed as:
./TestVariance.exe 2 100 10 .9
I want to write a bash script that runs it several times while changing the second argument each time. After searching some answers on SO, I come up with a script like
#!/bin/bash
let d=2
let s=10
let q=9/10
for i in 'seq 100 100 1000'
do
./TestVariance.exe $d $i $s $q;
done
But it seems that the script only call TestVariance.exe without passing any arguments. I wonder what's wrong with my script?
BTW, is there any advice for vscode extensions on bash script?
ionly literally (and not via parameter), you would writefor i in {100..1000..100}.syntax error: invalid arithmetic operator (error token is ".9"). I wonder how to overcome this. Edit: I come to realized that I can just put .9 as plain text, now it runs well!