#!/bin/bash

for year in 2020 2021 2022 ; do
  for month in 01 02 03 04 05 06 07 08 09 10 11 12 ; do

   echo ${year} ${month}
   mkdir -p spi_spei/${year}/${month}
   mv sp*_${year}${month}* spi_spei/${year}/${month}/. 

done
done

