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
star1
star2
...
star99
star100
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:
Quote:
#!/bin/bash
i=1
while [ $i -le 100 ]
do
perl Perl_program.pl star(i) > star(i)_c
i=$(( $i + 1 ))
done
but instead of the
(i) I want to insert the current value of the variable i. How can I do that?
thanks
