Fix.
[u/mrichter/AliRoot.git] / TPC / scripts / filterRecLog.sh
CommitLineData
d1513470 1# marian.ivanov@cern.ch
2# Filter error logs
3# Input - errRec.logs - text file with the list of error logs
4# Output - seg.log - text file with the seg.faults runs
5# - segout.log - text file with the output of the seg.fault runs
6# - the err.log and out.log suppose to be in the same directory
7# to get the list of logs:
8# example:
9# find /lustre/alice/alien/alice/data/2009/LHC09c_TPC/00008*/esdgsi3/*/err.log > errRec.log
10
11isOK=0
12nonOK=0
13rm seg.log
14rm segout.log
15for efile in `cat errRec.log` ;do
16 xxx=`cat $efile| grep segmentation`
17 if [ -z "$xxx" ]
18 then
19 let isOK=isOK+1
20 else
21 let nonOK=nonOK+1
22 echo nonOK=$nonOK
23 echo "$efile" >>seg.log
24 echo $efile
25 ofile=`echo $efile| sed s_err_out_`
26 cat $ofile >> segout.log
27 fi
28done;
29#get the list
30echo isOK=$isOK nonOK=$nonOK