File indexing completed on 2025-08-05 08:12:57
0001
0002
0003 submissionFile=myCondor.job
0004
0005 listDir=fileLists
0006
0007 runs="53877 53534 53631 53687 53716 53738 53739 53741 53742 53743 53744 53756 53783 53871 53876 53879"
0008
0009 for run in $runs
0010 do
0011 nFiles=$(($(ls -l ${listDir}/file_run${run}_*.list | wc -l) - 1))
0012
0013 for i in $(seq 0 $nFiles)
0014 do
0015
0016 i=$(printf "%03d" $i)
0017
0018 currentOptionsFile=$(grep 'Queue' ${submissionFile} | awk '{print $NF}' | awk -F "/" '{print $NF}')
0019 newOptionsFile=file_run${run}_$i.list
0020
0021 if [ -f ${listDir}/${newOptionsFile} ]; then
0022 echo "Current options file: ${currentOptionsFile}"
0023 echo "New options file: ${newOptionsFile}s"
0024 sed -i -e "s/${currentOptionsFile}/${newOptionsFile}/g" ${submissionFile}
0025 condor_submit ${submissionFile}
0026 else
0027 echo "File ${newOptionsFile} is missing"
0028 fi
0029
0030 done
0031 done