#!/bin/bash

YEAR=1999
LAST=2021
while [ "$YEAR" != "$((LAST+1))" ]; do 
   sed -i "s/$((YEAR-1))/${YEAR}/" ERA5download_ARABIAN.py
   python ERA5download_ARABIAN.py

   mv download.nc ERA5.GOTM.ARABIAN.${YEAR}.nc
   YEAR=$((YEAR+1))
done
