#!/bin/bash # fetch_runs.sh -- download the runs listed in runs.txt from figshare set -euo pipefail while read -r name id; do echo "$name.csv <- figshare file $id" curl -fsSL -o "$name.csv" "https://ndownloader.figshare.com/files/$id" done < runs.txt