#!/bin/sh

#Charlotte Rae 2012

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

#Get motion information for each subject, using Mark Jenkinson's script, called dti_motion.

#Should output three .png figures and three .txt files

#You need to be in each individual subject's folder before you run dti_motion for that subject

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

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

for zzVARmot in ${subjs} ; do
echo "${zzVARmot} dti_motion"
cd /imaging/cr01/folder/${zzVARmot}/
dti_motion ${zzVARmot}"ec".ecclog 
done

echo "End"
