Changeset 2010
- Timestamp:
- 02/28/13 17:23:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TOOLS/PACK_IPSL/launch_and_measureTime.sh
r1912 r2010 229 229 done 230 230 231 IFS=$old_IFS # r établissement du séparateur de champ par défaut231 IFS=$old_IFS # retablissement du separateur de champ par defaut 232 232 233 233 rm -f $listToRmvFile_tmp … … 254 254 opt="r" 255 255 fi 256 257 sed -e "s/\(.*\)/rm -f${opt} \1/" $lst >> ${rmvedFiles} 256 258 257 for file in $( cat $lst )258 do259 echo "rm -f${opt} $file" >> ${rmvedFiles}260 if [ "x$deleteFiles" == "x1" ]261 then262 rm -f${opt} $file263 fi264 done259 # for file in $( cat $lst ) 260 # do 261 # echo "rm -f${opt} $file" >> ${rmvedFiles} 262 # if [ "x$deleteFiles" == "x1" ] 263 # then 264 # rm -f${opt} $file 265 # fi 266 # done 265 267 done 266 268 … … 307 309 308 310 # Destroy links 309 for file in $( cat ${linksToEraseFile} ) 310 do 311 echo "rm -f $file" >> ${rmvedFiles} 312 if [ "x$deleteFiles" == "x1" ] 313 then 314 rm -f $file 315 fi 316 done 317 311 312 # for file in $( cat ${linksToEraseFile} ) 313 # do 314 # echo "rm -f $file" >> ${rmvedFiles} 315 # if [ "x$deleteFiles" == "x1" ] 316 # then 317 # rm -f $file 318 # fi 319 # done 320 321 sed -e "s/\(.*\)/rm -f \1/" ${linksToEraseFile} >> ${rmvedFiles} 322 318 323 # Destroy real datas 319 for file in $( cat ${realDataToEraseFile} ) 320 do 321 echo "rm -f $file" >> ${rmvedFiles} 322 if [ "x$deleteFiles" == "x1" ] 323 then 324 rm -f $file 325 fi 326 done 327 328 IFS=$old_IFS # rétablissement du séparateur de champ par défaut 324 # for file in $( cat ${realDataToEraseFile} ) 325 # do 326 # echo "rm -f $file" >> ${rmvedFiles} 327 # if [ "x$deleteFiles" == "x1" ] 328 # then 329 # rm -f $file 330 # fi 331 # done 332 333 sed -e "s/\(.*\)/rm -f \1/" ${realDataToEraseFile} >> ${rmvedFiles} 334 335 if [ "x$deleteFiles" == "x1" ] 336 then 337 sh ${rmvedFiles} 338 fi 339 340 IFS=$old_IFS # retablissement du separateur de champ par defaut 329 341 } 330 342
Note: See TracChangeset
for help on using the changeset viewer.