Thanks for responding. I am running the script in the directory that the brains are saved not the /user/local etc. Here is the error message that it gives me:
/usr/local/freesurfer/stable5_3_0//bin/kvlQuantifyHippocampalSubfieldSegmentations.sh: line 22: volumeStats_left.txt: Permission denied
failed to do kvlQuantifyPosteriorProbabilityImages /usr/local/freesurfer/stable5_3_0//data/GEMS/compressionLookupTable_left.txt posterior_Left-Hippocampus.mgz posterior_left_presubiculum.mgz posterior_left_CA1.mgz posterior_left_CA2_3.mgz posterior_left_fimbria.mgz posterior_left_subiculum.mgz posterior_left_CA4_DG.mgz posterior_left_hippocampal_fissure.mgz > volumeStats_left.txt
thanks so much,
Alan