#Author Knut J Bjuland knut.j.bjuland@ntnu.no
#Licens under GNU GPL 3 http://www.gnu.org/copyleft/gpl.html
#No warrenty

dir0=`ls -d subjects`
store="where to put the files"
label=cortex.label


for filename in ${dir0}; do
     echo "subject ${filename}" 
     mris_anatomical_stats -l rh.${label} -f  ${store}/rh_${filename}.txt ${filename} rh
     mris_anatomical_stats -l lh.${label} -f  ${store}/lh_${filename}.txt ${filename} lh
done 









