#!/bin/bash

set -x
ulimit -s unlimited

for i in {1993..2015} ; do

yr_new=$(($i + 23))
#echo $yr_new
ln -sf GLORYS12-NNATL12_gridS_y${i}.nc GLORYS12-NNATL12_gridS_y${yr_new}.nc
ln -sf GLORYS12-NNATL12_gridT_y${i}.nc GLORYS12-NNATL12_gridT_y${yr_new}.nc
ln -sf GLORYS12-NNATL12_SSSnoz_y${i}.nc GLORYS12-NNATL12_SSSnoz_y${yr_new}.nc

done

