Ignore:
Timestamp:
05/27/14 22:11:36 (11 years ago)
Author:
Daniela Dorner
Message:
included check of variable certaindate
Location:
trunk/DataCheck/QuickLook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/QuickLook/Step2a.sh

    r17569 r17904  
    77if [ "$certaindate" != "" ]
    88then
     9   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     10   if [ "$checkstring" = "" ]
     11   then
     12      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     13      finish
     14   fi
    915   getdates $certaindate
    1016else
  • trunk/DataCheck/QuickLook/Step3.sh

    r17591 r17904  
    4141if [ "$certaindate" != "" ]
    4242then
     43   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     44   if [ "$checkstring" = "" ]
     45   then
     46      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     47      finish
     48   fi
    4349   getdates $certaindate
    4450else
Note: See TracChangeset for help on using the changeset viewer.