#!/bin/bash
set -e
trap 'echo "An error occurred. Exiting."' ERR
mkdir dbpedia-generic-snapshot-2022-12-files
cd dbpedia-generic-snapshot-2022-12-files
trap 'cd -' EXIT
cat ../downloadlinks.txt | xargs -n 1 -P 8 wget -c
