Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:08:46

0001 #!/bin/csh
0002 
0003 wget https://cms-service-dqm.web.cern.ch/cms-service-dqm/CAF/certification/Cosmics15/status.Cosmics15.week5.html
0004 
0005 set MYDAT=`cat status.Cosmics15.week5.html | grep "<title>" | awk -F \( '{print $2}' | awk -F \) '{print $1}'`
0006 set FIN=`date -d"$MYDAT" '+%Y_%m_%d_%H_%M_%S'`
0007 
0008 echo ${FIN}
0009 
0010 cat status.Cosmics15.week5.html | grep "<tr><th>" | awk -F "</th><td" '{print $1}' | awk -F "<tr><th>" '{print $2}' | awk -F "</th><th>" '{print $1}' > tmp.htm
0011 
0012 touch runsets_${FIN}
0013 
0014 set k=0
0015 set j=0
0016 foreach i (`cat tmp.htm`)
0017 if( ${i} == "Run" ) then
0018 set k=0
0019 @ j = ${j} + "1"
0020 else
0021 echo ${i} >> runsets_${FIN}
0022 @ k = ${k} + "1"
0023 endif
0024 if (${j} > "1") then
0025 break
0026 endif 
0027 end
0028 
0029 rm 
0030 tmp.htm