I'm running fsl command on several folders using loop option as follow:
for dir in Study* ; do
fslmaths ${dir}/img1.nii -add ${dir}/img2.nii ${dir}/out.nii
done
How can I run the loop on 2 hierarchy?
i.e. all Study_XX folders within Sub_XX folders?
Many thanks
Moran
|