#!/bin/csh

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

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

2
2
4
1

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

2
3
4
1

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

2
4
4
1

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

2
5
4
1

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

2
6
4
1

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

2
7
4
1

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

2
8
4
1

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

2
9
4
1

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

2
10
4
1

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

9
END
/usr/local/bin/ps2gif A1gpp_R1
/usr/local/bin/ps2gif A1gpp_R2
/usr/local/bin/ps2gif A1gpp_R3
/usr/local/bin/ps2gif A1gpp_R4
/usr/local/bin/ps2gif A1gpp_R5
/usr/local/bin/ps2gif A1gpp_R6
/usr/local/bin/ps2gif A1gpp_R7
/usr/local/bin/ps2gif A1gpp_R8
/usr/local/bin/ps2gif A1gpp_R9
/usr/local/bin/ps2gif A1gpp_R10
grep "R=" A1gpp_R1.sm >! A1gpp_res.dat
grep "E=" A1gpp_R1.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R1.sm >> A1gpp_res.dat
grep "R=" A1gpp_R2.sm >> A1gpp_res.dat
grep "E=" A1gpp_R2.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R2.sm >> A1gpp_res.dat
grep "R=" A1gpp_R3.sm >> A1gpp_res.dat
grep "E=" A1gpp_R3.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R3.sm >> A1gpp_res.dat
grep "R=" A1gpp_R4.sm >> A1gpp_res.dat
grep "E=" A1gpp_R4.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R4.sm >> A1gpp_res.dat
grep "R=" A1gpp_R5.sm >> A1gpp_res.dat
grep "E=" A1gpp_R5.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R5.sm >> A1gpp_res.dat
grep "R=" A1gpp_R6.sm >> A1gpp_res.dat
grep "E=" A1gpp_R6.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R6.sm >> A1gpp_res.dat
grep "R=" A1gpp_R7.sm >> A1gpp_res.dat
grep "E=" A1gpp_R7.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R7.sm >> A1gpp_res.dat
grep "R=" A1gpp_R8.sm >> A1gpp_res.dat
grep "E=" A1gpp_R8.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R8.sm >> A1gpp_res.dat
grep "R=" A1gpp_R9.sm >> A1gpp_res.dat
grep "E=" A1gpp_R9.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R9.sm >> A1gpp_res.dat
grep "R=" A1gpp_R10.sm >> A1gpp_res.dat
grep "E=" A1gpp_R10.sm >> A1gpp_res.dat
grep "Q=" A1gpp_R10.sm >> A1gpp_res.dat
echo " " >> A1gpp_res.dat
grep "*** Final fit result" fits_A1gpp.log >> A1gpp_res.dat
