blob: 5506ab8f3c6c06a1f8cddc87754119e69b5b1d69 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#!/usr/bin/env bash
if [ $# -eq 1 ]
then
:
else
echo "Usage: <global.cfg list file>"
exit
fi
bdir=`pwd`
for i in `cat $1`
do
dname=`dirname $i`
#dname=`dirname $dname`
echo $dname
cd $dname ||continue
# mkdir -p profile_entropy
# cp -rf profile/* profile_entropy/
# cd profile/
[ -e result ] && r200file=result
[ -e result ] || r200file=result_checked
r200=`grep r200 $r200file|awk -F = '{print $2}' |awk -F '-' '{print $1}'`
rout=`python -c "print($r200*.1)"`
echo $rout
if grep n01 source.cfg >/dev/null
then
echo "dbeta"
fit_dbeta_entropy.sh global.cfg $rout
else
echo "beta"
fit_beta_entropy.sh global.cfg $rout
fi
cd $bdir
done
|