We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:
https://discuss.afni.nimh.nih.gov
Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.
The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.
I wonder if you need to have double quotes where you use your defined variables?
That is, instead of:
12352 HV Pos Large 0 ./stats.BigSmallPEs_IndividMed.12352+tlrc.${name1} \
you would have:
12352 HV Pos Large 0 ./stats.BigSmallPEs_IndividMed.12352+tlrc."${name1}" \
?
Otherwise, I don't think your squarebrackets in the variable string are being protected. It's been a while since I've used sh/bash, but that is what I would do if it were tcsh.