dpath='/projects/NS9873K/norcpm/raw/norcpm-cf-system1/norcpm-cf-system1_hindcast1/'
for yr in `seq -w 1992 2023`
do
	for mm in `seq -w 01 12`
	do
		fullpath=${dpath}norcpm-cf-system1_hindcast1_${yr}${mm}15/norcpm-cf-system1_hindcast1_${yr}${mm}15_mem01-60/atm/hist/norcpm-cf-system1_hindcast1_${yr}${mm}15_mem01-60.cam2.h0.${yr}-${mm}.nc
		echo $fullpath
		if [ -f $fullpath ]; then
			ln -f ${dpath}norcpm-cf-system1_hindcast1_${yr}${mm}15/norcpm-cf-system1_hindcast1_${yr}${mm}15_mem01-60/ice/hist/norcpm-cf-system1_hindcast1_${yr}${mm}15_mem01-60.cice.h.*.nc .
		fi
	done
done

