#!/bin/bash # Base URL baseUrl="https://www.dmfa.si/Tekmovanja/GetPDF.ashx?src=" for year in {2001..2022} do # Construct the URL url="${baseUrl}MaSSB_Drzavno_${year}.pdf" # Download the file echo "Downloading ${url}..." curl -o "MaSSB_Drzavno_${year}.pdf" "${url}" done echo "All files have been downloaded."