AFNI Message Board

Dear AFNI users-

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.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 28, 2005 05:01PM
Hi Whitney,

The foreach loop requires the "foreach" and "end"
commands to be on separate lines from the commands
inside the loop, i.e. your loop should look like:

foreach run (1 2 3 4 5 6 7 8)
3dvolreg -base JIepi8+orig'[105]' -tshift 0 -prefix JIepi{$run}_vr JIepi{$run}+orig'[2..134]'
end

One possible reason for this is if you are creating your
script in an editor on a W!nd*ws machine, and running
the script on a UNIX-type machine. The end-of-line
characters are different between them. This is also true
between Mac and UNIX.

- rick

Subject Author Posted

foreach loop error

Whitney October 28, 2005 04:45PM

Re: foreach loop error

rick reynolds October 28, 2005 05:01PM

Re: foreach loop error

Whitney October 31, 2005 11:12AM