#!/bin/bash
DATES=(16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15)
MONTH=(10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 02 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03)
YEAR=(2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2013 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014 2014)
YY=(13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14)
MONTHNAME=(October October October October October October October October October October October October October October October October November November November November November November November November November November November November November November November November November November November November November November November November November November November November November November December December December December December December December December December December December December December December December December December December December December December December December December December December December December December December December January January January January January January January January January January January January January January January January January January January January January January January January January January January January January January January February February February February February February February February February February February February February February February February February February February February February February February February February February February February March March March March March March March March March March March March March March March)
for ((i = 7 ; i < ${#DATES[@]} ; i++)) ;
do
STRING=${YY[i]}${MONTH[i]}${DATES[i]}
STRING00=${STRING}00
STRING12=${STRING}12
cd /Library/WebServer/Documents/ATTREX_2014/met_files/gfs/
mkdir $STRING00
mkdir $STRING12
cp ../datanotavailable.pdf "$STRING00"/T_gfs_trop_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/T_gfs_trop_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/T_gfs_100_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/T_gfs_100_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/T_gfs_70_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/T_gfs_70_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/RH_gfs_700_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/RH_gfs_700_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/RH_gfs_500_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/RH_gfs_500_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/RH_gfs_300_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/RH_gfs_300_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/CL_gfs_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/CL_gfs_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/CM_gfs_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/CM_gfs_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/CH_gfs_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/CH_gfs_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/EPV_gfs_150_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/EPV_gfs_150_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/EPV_gfs_100_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/EPV_gfs_100_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/EPV_gfs_70_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/EPV_gfs_70_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/EPV_gfs_50_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/EPV_gfs_50_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TH_gfs_355_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TH_gfs_355_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TH_gfs_380_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TH_gfs_380_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TH_gfs_400_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TH_gfs_400_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_36_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_36_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_39_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_39_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_42_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_42_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_45_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_45_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_49_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_49_${STRING}12.pdf
cp ../datanotavailable.pdf "$STRING00"/TU_gfs_53_${STRING}00.pdf
cp ../datanotavailable.pdf "$STRING12"/TU_gfs_53_${STRING}12.pdf
done 
exit 0
