I'm having trouble setting up a script that copies and converts files. What I basically want is a script that takes a subject e.g.
copies this file into
and converts the
mri_convert, and does this with +300 subjects (in the subjects folder).
This should be fairly simple... Can anybody help me out here?
I'm a big newb! This is a example of what i would like to do - with a single subject:
cp /mnt/projects/Project_folder/subjects/gXXX/mri/norm.mgz /mnt/projects/Project_folder/thalamic_subnuclei/fs_norms/gXXX/
mri_convert mnt/projects/Project_folder/thalamic_subnuclei/fs_norms/gXXX/norm.mgz mnt/projects/Project_folder/thalamic_subnuclei/fs_norms/gXXX/norm.nii
All my subjects are called g followed by 3-4 numbers. Now I need to set up a loop that does this with the +300 subjects in the