#!/bin/csh

rm -f Egp_R*.gif
rm -f Egp_R*.ps
rm -f Egp_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3/B30_AR3_15x15x15x45/B30_AR3_15x15x15x45_refbins
fits_Egp.log
y
/home1/REFINED_DATA/su3/B30_AR3_15x15x15x45/B30_AR3_15x15x15x45_effmass
0
9
2
2
1
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R1
n

2
2
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R2
n

2
3
4
1

2
7
2
12
1
1024
n
n
y
4
Egp_R3
n

2
4
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R4
n

2
5
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R5
n

2
6
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R6
n

2
7
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R7
n

2
8
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R8
n

2
9
4
1

2
7
2
15
1
1024
n
n
y
4
Egp_R9
n

9
END
/usr/local/bin/ps2gif Egp_R1
/usr/local/bin/ps2gif Egp_R2
/usr/local/bin/ps2gif Egp_R3
/usr/local/bin/ps2gif Egp_R4
/usr/local/bin/ps2gif Egp_R5
/usr/local/bin/ps2gif Egp_R6
/usr/local/bin/ps2gif Egp_R7
/usr/local/bin/ps2gif Egp_R8
/usr/local/bin/ps2gif Egp_R9
grep "R=" Egp_R1.sm >! Egp_res.dat
grep "E=" Egp_R1.sm >> Egp_res.dat
grep "Q=" Egp_R1.sm >> Egp_res.dat
grep "R=" Egp_R2.sm >> Egp_res.dat
grep "E=" Egp_R2.sm >> Egp_res.dat
grep "Q=" Egp_R2.sm >> Egp_res.dat
grep "R=" Egp_R3.sm >> Egp_res.dat
grep "E=" Egp_R3.sm >> Egp_res.dat
grep "Q=" Egp_R3.sm >> Egp_res.dat
grep "R=" Egp_R4.sm >> Egp_res.dat
grep "E=" Egp_R4.sm >> Egp_res.dat
grep "Q=" Egp_R4.sm >> Egp_res.dat
grep "R=" Egp_R5.sm >> Egp_res.dat
grep "E=" Egp_R5.sm >> Egp_res.dat
grep "Q=" Egp_R5.sm >> Egp_res.dat
grep "R=" Egp_R6.sm >> Egp_res.dat
grep "E=" Egp_R6.sm >> Egp_res.dat
grep "Q=" Egp_R6.sm >> Egp_res.dat
grep "R=" Egp_R7.sm >> Egp_res.dat
grep "E=" Egp_R7.sm >> Egp_res.dat
grep "Q=" Egp_R7.sm >> Egp_res.dat
grep "R=" Egp_R8.sm >> Egp_res.dat
grep "E=" Egp_R8.sm >> Egp_res.dat
grep "Q=" Egp_R8.sm >> Egp_res.dat
grep "R=" Egp_R9.sm >> Egp_res.dat
grep "E=" Egp_R9.sm >> Egp_res.dat
grep "Q=" Egp_R9.sm >> Egp_res.dat
echo " " >> Egp_res.dat
grep "*** Final fit result" fits_Egp.log >> Egp_res.dat
