| # 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." | |