#!/bin/csh

rm -f Egpp_R*.gif
rm -f Egpp_R*.ps
rm -f Egpp_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3_lgt4/B250_AR5/B25_AR5_REFBINS
fits_Egpp.log
y
/home1/REFINED_DATA/su3_lgt4/B250_AR5/B25_AR5_effmass
0
9
3
2
1
4
1

2
7
3
12
1
1024
n
n
y
4
Egpp_R1
n

2
2
4
1

2
7
3
12
1
1024
n
n
y
4
Egpp_R2
n

2
3
4
1

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

2
4
4
1

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

2
5
4
1

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

2
6
4
1

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

2
7
4
1

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

2
8
4
1

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

2
9
4
1

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

2
10
4
1

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

9
END
/usr/local/bin/ps2gif Egpp_R1
/usr/local/bin/ps2gif Egpp_R2
/usr/local/bin/ps2gif Egpp_R3
/usr/local/bin/ps2gif Egpp_R4
/usr/local/bin/ps2gif Egpp_R5
/usr/local/bin/ps2gif Egpp_R6
/usr/local/bin/ps2gif Egpp_R7
/usr/local/bin/ps2gif Egpp_R8
/usr/local/bin/ps2gif Egpp_R9
/usr/local/bin/ps2gif Egpp_R10
grep "R=" Egpp_R1.sm >! Egpp_res.dat
grep "E=" Egpp_R1.sm >> Egpp_res.dat
grep "Q=" Egpp_R1.sm >> Egpp_res.dat
grep "R=" Egpp_R2.sm >> Egpp_res.dat
grep "E=" Egpp_R2.sm >> Egpp_res.dat
grep "Q=" Egpp_R2.sm >> Egpp_res.dat
grep "R=" Egpp_R3.sm >> Egpp_res.dat
grep "E=" Egpp_R3.sm >> Egpp_res.dat
grep "Q=" Egpp_R3.sm >> Egpp_res.dat
grep "R=" Egpp_R4.sm >> Egpp_res.dat
grep "E=" Egpp_R4.sm >> Egpp_res.dat
grep "Q=" Egpp_R4.sm >> Egpp_res.dat
grep "R=" Egpp_R5.sm >> Egpp_res.dat
grep "E=" Egpp_R5.sm >> Egpp_res.dat
grep "Q=" Egpp_R5.sm >> Egpp_res.dat
grep "R=" Egpp_R6.sm >> Egpp_res.dat
grep "E=" Egpp_R6.sm >> Egpp_res.dat
grep "Q=" Egpp_R6.sm >> Egpp_res.dat
grep "R=" Egpp_R7.sm >> Egpp_res.dat
grep "E=" Egpp_R7.sm >> Egpp_res.dat
grep "Q=" Egpp_R7.sm >> Egpp_res.dat
grep "R=" Egpp_R8.sm >> Egpp_res.dat
grep "E=" Egpp_R8.sm >> Egpp_res.dat
grep "Q=" Egpp_R8.sm >> Egpp_res.dat
grep "R=" Egpp_R9.sm >> Egpp_res.dat
grep "E=" Egpp_R9.sm >> Egpp_res.dat
grep "Q=" Egpp_R9.sm >> Egpp_res.dat
grep "R=" Egpp_R10.sm >> Egpp_res.dat
grep "E=" Egpp_R10.sm >> Egpp_res.dat
grep "Q=" Egpp_R10.sm >> Egpp_res.dat
echo " " >> Egpp_res.dat
grep "*** Final fit result" fits_Egpp.log >> Egpp_res.dat
