Created
August 1, 2018 19:53
-
-
Save jamiebono/ee4c33ea3d7f885ef38ddacab27b7861 to your computer and use it in GitHub Desktop.
Shell script for bulk downloading dicom files from Bionimbus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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