sublist="subj008 subj009 subj010 subj011 subj012 subj013 subj014 subj015 subj016" for sub in $sublist do cd ~/MTstudy/fMRI/subjects/$sub/label parcellate_subject $sub mri_annotation2label --subject $sub --hemi lh --outdir ./ --table $FREESURFER_HOME/Simple_surface_labels2002.txt mri_annotation2label --subject $sub --hemi rh --outdir ./ --table $FREESURFER_HOME/Simple_surface_labels2002.txt mkdir -p annot_files mv *.annot annot_files rename .label -lh.label lh.* rename .label -rh.label rh.* rename rh.S S rh.* rename lh.S S lh.* rename lh.G G lh.* rename rh.G G rh.* rename lh.Corpus Corpus * rename rh.Corpus Corpus * rename lh.Lat_Fissure Lat_Fissue * rename rh.Lat_Fissure Lat_Fissue * rename rh.Medial_wall Medial_wall * rename lh.Medial_wall Medial_wall * rename rh.Pole Pole * rename lh.Pole Pole * done