ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/UfCode/UserArea/StatTools/script.sh
Revision: 1.1
Committed: Wed Dec 8 10:57:12 2010 UTC (14 years, 4 months ago) by kkotov
Content type: application/x-sh
Branch: MAIN
CVS Tags: V2012-H-02, V2012-01-00, V2011-01-01, V2011-01-00, AnnaDimuon, V01-00-01, V01-00-00, HEAD
Log Message:
*** empty log message ***

File Contents

# Content
1 #!/bin/bash
2
3 folder=$1;
4 max=$2;
5 min=$3;
6
7 p=0; for i in $folder/*.txt ; do l=`echo $i|sed -e 's|.*/\(.*\)_.*_.*|\1|g'`; m=`echo $i|sed -e 's|.*/.*_\(.*\)_.*\.txt|\1|g'`; f=`echo $i|sed -e 's|.*/.*_\(.*\)\.txt|\1|g'`; x=`grep 'All included subprocesses' $i | sed -e 's|D| |g' | awk '{if($11==-8)print $10*10000000; if($11==-9)print $10*1000000; if($11==-10)print $10*100000; if($11==-11)print $10*10000; if($11==-12)print $10*1000; if($11==-13)print $10*100; if($11==-14)print $10*10; if($11==-15)print $10;}' | sed -e 's|\..*||g'`; if [ $x -lt $max ] ; then if [ $x -ge $min ] ; then echo "gr$max""_""$min"".SetPoint("$p","$m","$l"); // xsec=$x/1000000.pb f=$f" ; p=`expr $p + 1`; else test ; fi; else test; fi ; done