2 # List all CDB paths present in the current OCDB folder
3 # The script is meant to check the different CDB path in the reference OCDB
4 # ($ALICE_ROOT) to make sure all entries are copied to the destination OCDB
5 # folder. In particular we are interested in the second of the three levels
6 # composing the CDB-path since usually the copy from one OCDB to the other
7 # is done by lines of the type
8 # TList* l = cdb->GetAll("*/Calib/*");
9 # TList* l = cdb->GetAll("*/Align/*");
10 # (see macro CDBToGrid.C)
13 stdfname="Run0_999999999"
14 msg="List of second level strings for CDB entries:"
16 for i in `find ./ -name 'Run*' | grep -v svn`
18 fname=`echo "$i" | cut -d/ -f5`
19 if(expr match "$fname" "Run0." > /dev/null)
21 if [[ $fname == Run0_99999999* ]]
23 second=`echo "$i" | cut -d/ -f3`
24 if [[ $second != Align ]] && [[ $second != Calib ]] && [[ $second != Config ]]
26 #printf "$second in $i\n"
31 echo "Warning: $i is not a good file name for OCDB"