Ignore:
Timestamp:
05/27/14 22:16:00 (10 years ago)
Author:
Daniela Dorner
Message:
included usage of variable certaindate
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Processing/FillRatescans.sh

    r17597 r17906  
    1313# filling is done by macro and update is always done
    1414
    15 # get last 3, 6 or 9 nights
    16 dates=( `date +%Y/%m/%d --date="-12hour"` `date +%Y/%m/%d --date="-36hour"` `date +%Y/%m/%d --date="-60hour"` \
    17 #        `date +%Y/%m/%d --date="-84hour"` `date +%Y/%m/%d --date="-108hour"` `date +%Y/%m/%d --date="-132hour"` \
    18 #        `date +%Y/%m/%d --date="-156hour"` `date +%Y/%m/%d --date="-180hour"` `date +%Y/%m/%d --date="-204hour"` \
    19         )
    20 #dates=( `find -L $ziprawdata -mindepth 3 -type d | sort -r | sed "s/\${ziprawdata_for_sed}//g" | sed -e 's/^\///'` ) #all available dates in /loc_data/zipraw
     15# get dates
     16if [ "$certaindate" != "" ]
     17then
     18   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     19   if [ "$checkstring" = "" ]
     20   then
     21      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     22      finish
     23   fi
     24   getdates $certaindate
     25else
     26   # get all night
     27   #getdates "all"
     28   # get last 6 nights
     29   getdates 6
     30fi
    2131
    22 #dates=( "2013/01/31" )
    2332
    2433printprocesslog "INFO processing the following night(s): "${dates[@]}
Note: See TracChangeset for help on using the changeset viewer.