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