All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
duplicate_finder_run_subrun.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 for FILE in $(samweb -e sbnd list-definition-files test_3_official_test_MCP2021C_test_prodoverlay_corsika_cosmics_proton_genie_fullosc_spill_gsimple-configh-v1_tpc_reco2_caf_sbnd);
4 do
5  RUN=$(samweb -e sbnd get-metadata $FILE | grep Runs | cut -d" " -f19);
6  if [[ $(samweb -e sbnd list-files "defname: test_3_official_test_MCP2021C_test_prodoverlay_corsika_cosmics_proton_genie_fullosc_spill_gsimple-configh-v1_tpc_reco2_caf_sbnd and run_number $RUN" | wc -l) -gt 1 ]]
7  then
8  echo $FILE
9  LOC=$(samweb -e sbnd get-file-access-url $FILE)
10  ifdh rm $LOC
11  samweb -e sbnd retire-file $FILE
12  fi
13 done
* file
Definition: file_to_url.sh:69
then shift fi
if &&[-z"$BASH_VERSION"] then echo Attempting to switch to bash bash shellSwitch exit fi &&["$1"= 'shellSwitch'] shift declare a IncludeDirectives for Dir in
do i e
stream1 can override from command line with o or output services user sbnd
list
Definition: file_to_url.sh:28