Hi all
I'm trying to copy dti_FA maps, located in folders and subfolders in my base path using
for dir in subj_*/subj_*/DTI/ ; do
cp ${dir}/dti_FA.nii.gz TBSS/${dir}dti_FA.nii.gz
done
[for ex the first map located at: subj_2590/subj_2590_T1/DTI/dti_FA.nii.gz]
But the script crashes, I guess due to the / in the file path
How can I copy and named the files correctly?
Thanks
Moran
|