#!/usr/bin/bash --login # This script sets the beginning and ending date # for copying the AWST model files export PATH=/usr/local/bin:/usr/bin:/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/:/cygdrive/c/bin echo Start `date` let ymd=20120101 while [ $ymd -lt 20120103 ] do # First copy the AWST models for this day echo -n "$ymd" for d in DOEA1 DOEA2 DOEA3 DOEM1 DOEM2 DOEM3 DOEW1 DOEW2 DOEW3 do # echo -n " $d" # cp /cygdrive/y/wfip/wfipdata/private/awst/Model/"$d"/?/*"$ymd"* /cygdrive/e/Model/"$d"/? # cp /cygdrive/y/wfip/wfipdata/private/awst/Model/"$d"/?/*"$ymd"* /cygdrive/f/Model/"$d"/? scp dwelsh@wfipingest1:/wfipdata/private/awst/Model/"$d"/?/*"$ymd"* /cygdrive/e/Model/"$d"/? scp dwelsh@wfipingest1:/wfipdata/private/awst/Model/"$d"/?/*"$ymd"* /cygdrive/f/Model/"$d"/? done # Now copy the HRRR images for this day for ymdh in /cygdrive/y/bao/wfip/images/"$ymd"?? do echo -n "${ymdh##/*/} HRRR e" cp -r "$ymdh" /cygdrive/e/hrrr_images echo -n " f" cp -r "$ymdh" /cygdrive/f/hrrr_images echo " done" done # Increment the date by one day let ymd=ymd+1 done echo Stop `date` echo -----