#!/bin/bash
#set -x

yini="1958"
yend="1989"

varlist="snowfall refreeze precip"
monthlist="JFM AMJ JAS OND"

for var in $varlist ; do
for year in `seq $yini 1 $yend` ; do
for month in $monthlist ; do

mv ${var}/${var}_WJB_int.${year}_${month}.BN_RACMO2.3p2_FGRN055_1km.DD.nc.gz ${var}/${var}_${year}_${month}.BN_RACMO2.3p2_FGRN055.1km.DD.nc.gz

done
done
done
