#!/usr/bin/env bash export SUBJECTS_DIR=/yourpath/brain_models for subj in `ls /yourpath/brain_models/Caculating` do recon-all -s $subj -i /yourpath/brain_models/Caculating/$subj/*.nii.gz -all -qcache done
#!/usr/bin/env bash export SUBJECTS_DIR=/yourpath/brain_models for subj in `ls /yourpath/brain_models/Caculating` do recon-all -s $subj -i /yourpath/brain_models/Caculating/$subj/*.nii.gz -all -qcache done