Ignore:
Timestamp:
02/08/12 12:33:48 (13 years ago)
Author:
lyard
Message:
added more scripts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Archive/auxIngest.sh

    r12750 r12871  
    33sourceFolder=$1
    44destFolder=$2
     5suffix=$3
    56
    6 if [ "$#" != "2" ]
     7if [ "$#" != "3" ]
    78then
    8         echo "Please specify source and dest folders. Aborting"
     9        echo "Please specify source and dest folders and suffix. Aborting"
    910        exit
    1011fi
     
    8586        if [ -a $targetFile ]
    8687        then
    87                 echo "File $targetFile already exist. Skipping it" >> report.txt
     88                echo "File $targetFile already exist. Skipping it" >> report_$suffix.txt
    8889                continue
    8990        fi
     
    9899#       then
    99100               
    100         repairAuxFile.sh $targetFile ENDerrors.txt MJDerror.txt report.txt processErrors.txt
     101        repairAuxFile.sh $targetFile ENDerrors_$suffix.txt MJDerror_$suffix.txt report_$suffix.txt processErrors_$suffix.txt
    101102       
    102103        if [ -a $targetFile ]
    103104        then
    104                 fixAuxKeyWords.sh $targetFile reportTwo.txt processErrors.txt
     105                fixAuxKeyWords.sh $targetFile reportTwo_$suffix.txt processErrors_$suffix.txt
    105106                result=`fverify $targetFile 2>/dev/null | grep '0 error(s)'`
    106107                if [ "$result" == "" ]
    107108                then
    108                         echo "$targetFile" >> stillHasProblems.txt
     109                        echo "$targetFile" >> stillHasProblems_$suffix.txt
    109110                        rm $targetFile
    110111                fi
Note: See TracChangeset for help on using the changeset viewer.