ROOTPWA
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
scripts
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
9
SELECT
=$3
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
Generated by
1.8.1.2