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!