ROOTPWA
checkWaves.sh
Go to the documentation of this file.
1 #!/bin/bash
2 
3 # $2 is reference bin
4 # $1 gives root-directory with bins to compare
5 # e.g. checkWaves.sh ~/mydirector 1000.1120/AMPS
6 
7 cd $1/$2
8 
10 
11 if [ -z $SELECT ]; then SELECT=amp ; fi
12 
13 ls *.amp > /tmp/refamps
14 cat /tmp/refamps
15 
16 cd $1
17 
18 COUNT=1
19 
20 for i in $1/*; do
21  cd $i/PSPAMPS/
22  ls *.amp > /tmp/diffamps
23  echo "Checking bin $COUNT: "
24  let COUNT=$COUNT+1
25  diff /tmp/diffamps /tmp/refamps | grep $SELECT
26 
27 done;
28