#!/bin/sh

#Charlotte Rae 2012

#Put me in your /home/bin/, and remember to make me executable with chmod a+rwx copy_FA.

#Copy each subject's FA image to the TBSS directory

#If you want to copy other images too, e.g. MD images, then repeat the for loop below, changing "dti_FA.nii.gz" to "dti_MD.nii.gz".

subjs="110159 110309"
#Put your subject folders in here

#Write your main directory here
cd /imaging/cr01/folder/

for zzVARcopy in ${subjs} ; do
echo "Copying FA image for ${zzVARcopy}"
cp ${zzVARcopy}/dti_FA.nii.gz folder/${zzVARcopy}.nii.gz
done


echo "End"
