so have basic script:
foreach x (*.nii) mri_convert -i $x -o $x:r.mgz -it nii -ot mgz end
in essence, should change file type of .nii files .mgz. when run in tcsh, receive:
./test1: 1: ./test1: syntax error: "(" unexpected
i unsure why getting error, correct syntax foreach typically:
foreach x (1 2 3) echo $x end
am mistaken?
Comments
Post a Comment