Hey everyone, I'm completely new to bash scripting, but I desperately need it for my work. I'm sure you can answer my question in one sentence.
What I want to do is the folloiwing:
I have about 100 files and I have to use a perl program on each of them
They are named
Each time I use the perl program on a file a new output is generated
star1 -> star1_c
star2 -> star2_c
...and so on
So my script looks like that:
while [ $i -le 100 ]
perl Perl_program.pl star(i) > star(i)_c
i=$(( $i + 1 ))
but instead of the (i)
I want to insert the current value of the variable i. How can I do that?