Concatenating(??) shell variable with string

Dear Users,

I am writing a for loop in shell (BASH), and am struggling with a very specific detail:

SU_DATA=/home/........./su/

for(blah blah blah)
{
a=1001
b=1002
suop2 $SU_DATA/$a_clean.su $SU_DATA/$b_clean.su op=sum > W1.su
}

Here, it looks like the variables are "a_clean.su" and "b_clean.su", but I just want 'a' and 'b' to be my variables. I will enter this into a for loop and slowly change the values of a and b, while keeping '_clean.su' the same throughout the execution of the for loop.

Please don't worry about the for loop parameters; I have those working -- it's just the syntax inside the loop that's troubling me.

Thanks to everyone who can guide me!

Whenever you expand a variable concatenated with characters that could also be part of a variable name, you need to use braces to delimit the variable name from the surrounding text... Try:

suop2 $SU_DATA/${a}_clean.su $SU_DATA/${b}_clean.su op=sum > W1.su