I have a C application called Test. Test takes in a single int parameter. I want to run Test with many different parameters, so I made the following bash script:
#!/bin/bash
for i in {0..5}
do
./Test "$i"
done
However, this executes ./Test "$i" and not ./Test 0, ./Test 1 etc. Changing it to ./Test $i simply executes ./Test $i 5 times.What am I doing wrong?
./Testitself.