I have a programme, ./a that I run in a loop in shell.
for((i=1 ; i<=30; i++)); do
./a arg1 5+i &//arg2 that I need to pass in which is the addition with the loop variables
done
How could I passed in the arg2 which is the addition with loop variables?
Also, I has another programme which is ./b which I need to run once and takes in all the 5 +i arguments. How could I do that without hardcoded it.
./b arg1 6\
7\
8\
9\.....
Thanks.