Ignore:
Timestamp:
05/27/14 22:15:04 (11 years ago)
Author:
Daniela Dorner
Message:
included and/or improved check of variable certaindate
Location:
trunk/DataCheck/Transfer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/BackupRawToWue.sh

    r17594 r17905  
    1313if [ "$certaindate" != "" ]
    1414then
    15    checkstring=`echo $certaindate | grep -E -o '20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]'`
     15   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
    1616   if [ "$checkstring" = "" ]
    1717   then
  • trunk/DataCheck/Transfer/CheckTransfer.sh

    r17889 r17905  
    108108   if [ "$certaindate" != "" ]
    109109   then
    110       checkstring=`echo $certaindate | grep -E -o '20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]'`
     110      checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
    111111      if [ "$checkstring" = "" ]
    112112      then
  • trunk/DataCheck/Transfer/ZipRawData.sh

    r17617 r17905  
    1919if [ "$certaindate" != "" ]
    2020then
     21   checkstring=`echo $certaindate | grep -E -o '^20[0-9][0-9]\/[01][0-9]\/[0-3][0-9]$'`
     22   if [ "$checkstring" = "" ]
     23   then
     24      echo "Please give the variable certaindate in the correct format (YYYY/MM/DD)"
     25      finish
     26   fi
    2127   getdates $certaindate
    2228else
Note: See TracChangeset for help on using the changeset viewer.