Changeset 12871 for trunk/DataCheck/Archive/auxIngest.sh
- Timestamp:
- 02/08/12 12:33:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DataCheck/Archive/auxIngest.sh
r12750 r12871 3 3 sourceFolder=$1 4 4 destFolder=$2 5 suffix=$3 5 6 6 if [ "$#" != " 2" ]7 if [ "$#" != "3" ] 7 8 then 8 echo "Please specify source and dest folders . Aborting"9 echo "Please specify source and dest folders and suffix. Aborting" 9 10 exit 10 11 fi … … 85 86 if [ -a $targetFile ] 86 87 then 87 echo "File $targetFile already exist. Skipping it" >> report .txt88 echo "File $targetFile already exist. Skipping it" >> report_$suffix.txt 88 89 continue 89 90 fi … … 98 99 # then 99 100 100 repairAuxFile.sh $targetFile ENDerrors .txt MJDerror.txt report.txt processErrors.txt101 repairAuxFile.sh $targetFile ENDerrors_$suffix.txt MJDerror_$suffix.txt report_$suffix.txt processErrors_$suffix.txt 101 102 102 103 if [ -a $targetFile ] 103 104 then 104 fixAuxKeyWords.sh $targetFile reportTwo .txt processErrors.txt105 fixAuxKeyWords.sh $targetFile reportTwo_$suffix.txt processErrors_$suffix.txt 105 106 result=`fverify $targetFile 2>/dev/null | grep '0 error(s)'` 106 107 if [ "$result" == "" ] 107 108 then 108 echo "$targetFile" >> stillHasProblems .txt109 echo "$targetFile" >> stillHasProblems_$suffix.txt 109 110 rm $targetFile 110 111 fi
Note:
See TracChangeset
for help on using the changeset viewer.