File size: 331 Bytes
802d9fe | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/bin/bash
# Base URL
baseUrl="https://www.dmfa.si/Tekmovanja/GetPDF.ashx?src="
for year in {2013..2017}
do
# Construct the URL
url="${baseUrl}MaSSA_Solsko_${year}.pdf"
# Download the file
echo "Downloading ${url}..."
curl -o "MaSSA_Solsko_${year}.pdf" "${url}"
done
echo "All files have been downloaded."
|