Created
August 1, 2021 19:14
-
-
Save clintval/0a8f10d88ff5438766f7a13b10c9fbd8 to your computer and use it in GitHub Desktop.
Download COSMIC
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
export TOKEN=??? | |
curl -s -X GET \ | |
-H "Content-Type: application/octet-stream" \ | |
-H "Authorization: Bearer ${TOKEN}" "https://my.qiagendigitalinsights.com/bbp/data/files/cosmic" \ | |
-o files.txt | |
parallel -k \ | |
'curl -X GET \ | |
-H "Content-Type: application/octet-stream" \ | |
-H "Authorization: Bearer ${TOKEN}" \ | |
"https://my.qiagendigitalinsights.com/bbp/data/download/cosmic-download?name={1}" \ | |
-o {2}' | |
::: $(cut -f1 files.txt) :::+ $(cut -f2 files.txt) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment