analysis.sh 1.43 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export ANNAL=${ALF_DIR}"/Analysis/"

for filename in *_scal; do
    echo $filename
    export filename1=$filename"J"
#    if [ "$filename1" -ot "$filename" ]; then
       cp $filename Var_scal
       $ANNAL/cov_scal.out
       mv "Var_scalJ"  $filename"J"
       for filename2 in Var_scal_Auto_*; do
	   if [ -e "${filename2}" ]; then
               NewName=`echo ${filename2} | sed s/Var_scal/${filename}/`
	       mv $filename2 $NewName
	   fi
       done
       rm Var_scal
#    fi
done

20
for filename in *_eq; do
21
22
23
24
    echo $filename
    export filename1=$filename"J"
#    if [ "$filename1" -ot "$filename" ]; then
       ln $filename ineq
25
       $ANNAL/cov_eq.out
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
       mv "equalJ"  $filename"JK"
       mv "equalJR" $filename"JR"
       for filename2 in Var_eq_Auto_Tr*; do
	   if [ -e "${filename2}" ]; then
	      NewName=`echo ${filename2} | sed s/Var_eq/${filename}/`
	      mv $filename2 $NewName
	   fi
       done
       rm ineq
#    fi
done


for filename in *_tau; do
    echo $filename
    ln $filename intau
42
43
44
45
46
    if [ "$filename" = "Green_tau" ]; then
       $ANNAL/cov_tau.out
    else  
       $ANNAL/cov_tau_ph.out
    fi
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
    rm intau
    mv SuscepJ $filename"JK"
    for filename1 in g_*; do
	echo $filename1
        export Name=`echo ${filename} | sed s/_tau//`	
        export Dir=`echo ${filename1} | sed s/g_/${Name}_/`
	echo $Dir
	if [ ! -e $Dir ]; then 
           mkdir $Dir
        fi
	cd  $Dir 
	mv ../$filename1 .
	cd  ..
    done
done