cd #YOUR FUNCTIONAL DIR set sessionlist = 'NC33_sess NC34_sess' set fsdlist = 'bold_FE bold_FR bold_WE bold_WR' foreach s ($sessionlist) foreach fsd ($fsdlist) mc-sess -fstem f -fmcstem fmc -d . -s ${s} -fsd ${fsd} spatialsmooth-sess -i fmc -o fmcsm8 -fwhm 8 -d . -s ${s} -fsd ${fsd} inorm-sess -funcstem fmcsm8 -d . -s ${s} -fsd ${fsd} autoreg-sess -d . -s ${s} -fsd ${fsd} end end