Skip to content

Instantly share code, notes, and snippets.

@hyobyun
Created June 3, 2013 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyobyun/5699339 to your computer and use it in GitHub Desktop.
Save hyobyun/5699339 to your computer and use it in GitHub Desktop.
copy dicoms, only t1, restint combined, restSeq Combined
images='dir1
dir2
'
for i in $images; do
mkdir /research/CIDAR_proc_test/2ndset/$i
cp -vR /mnt/DICOM_originals/CIDAR/dicom/$i/*interleaved_Combined* /research/CIDAR_proc_test/2ndset/$i/
cp -vR /mnt/DICOM_originals/CIDAR/dicom/$i/*sequential_Combined* /research/CIDAR_proc_test/2ndset/$i/
cp -vR /mnt/DICOM_originals/CIDAR/dicom/$i/*t1* /research/CIDAR_proc_test/2ndset/$i/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment