Skip to content

Instantly share code, notes, and snippets.

@jamiebono
Created August 1, 2018 19:53
Show Gist options
  • Select an option

  • Save jamiebono/ee4c33ea3d7f885ef38ddacab27b7861 to your computer and use it in GitHub Desktop.

Select an option

Save jamiebono/ee4c33ea3d7f885ef38ddacab27b7861 to your computer and use it in GitHub Desktop.
Shell script for bulk downloading dicom files from Bionimbus
#!/bin/bash
cat $1 | while read line
do
f=`echo $line | tr -d '\r'`
uuid=$(echo $f | awk '{print $1}')
fname=$(echo $f | awk '{print $2}')
echo Downloading $fname with UUID $uuid
./cdis-data-client download --profile elkinp --uuid $uuid --file $2$fname
echo Download of $fname complete!
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment