#!/bin/csh

rm -f Euppp_R*.gif
rm -f Euppp_R*.ps
rm -f Euppp_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3_lgt4/B300_AR3/B30_AR3_REFBINS
fits_Euppp.log
y
/home1/REFINED_DATA/su3_lgt4/B300_AR3/B30_AR3_effmass
0
10
4
2
1
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R1
n

2
2
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R2
n

2
3
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R3
n

2
4
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R4
n

2
5
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R5
n

2
6
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R6
n

2
7
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R7
n

2
8
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R8
n

2
9
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R9
n

2
10
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R10
n

2
11
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R11
n

2
12
4
1

2
7
1
14
1
333
n
n
y
4
Euppp_R12
n

9
END
/usr/local/bin/ps2gif Euppp_R1
/usr/local/bin/ps2gif Euppp_R2
/usr/local/bin/ps2gif Euppp_R3
/usr/local/bin/ps2gif Euppp_R4
/usr/local/bin/ps2gif Euppp_R5
/usr/local/bin/ps2gif Euppp_R6
/usr/local/bin/ps2gif Euppp_R7
/usr/local/bin/ps2gif Euppp_R8
/usr/local/bin/ps2gif Euppp_R9
/usr/local/bin/ps2gif Euppp_R10
/usr/local/bin/ps2gif Euppp_R11
/usr/local/bin/ps2gif Euppp_R12
grep "R=" Euppp_R1.sm >! Euppp_res.dat
grep "E=" Euppp_R1.sm >> Euppp_res.dat
grep "Q=" Euppp_R1.sm >> Euppp_res.dat
grep "R=" Euppp_R2.sm >> Euppp_res.dat
grep "E=" Euppp_R2.sm >> Euppp_res.dat
grep "Q=" Euppp_R2.sm >> Euppp_res.dat
grep "R=" Euppp_R3.sm >> Euppp_res.dat
grep "E=" Euppp_R3.sm >> Euppp_res.dat
grep "Q=" Euppp_R3.sm >> Euppp_res.dat
grep "R=" Euppp_R4.sm >> Euppp_res.dat
grep "E=" Euppp_R4.sm >> Euppp_res.dat
grep "Q=" Euppp_R4.sm >> Euppp_res.dat
grep "R=" Euppp_R5.sm >> Euppp_res.dat
grep "E=" Euppp_R5.sm >> Euppp_res.dat
grep "Q=" Euppp_R5.sm >> Euppp_res.dat
grep "R=" Euppp_R6.sm >> Euppp_res.dat
grep "E=" Euppp_R6.sm >> Euppp_res.dat
grep "Q=" Euppp_R6.sm >> Euppp_res.dat
grep "R=" Euppp_R7.sm >> Euppp_res.dat
grep "E=" Euppp_R7.sm >> Euppp_res.dat
grep "Q=" Euppp_R7.sm >> Euppp_res.dat
grep "R=" Euppp_R8.sm >> Euppp_res.dat
grep "E=" Euppp_R8.sm >> Euppp_res.dat
grep "Q=" Euppp_R8.sm >> Euppp_res.dat
grep "R=" Euppp_R9.sm >> Euppp_res.dat
grep "E=" Euppp_R9.sm >> Euppp_res.dat
grep "Q=" Euppp_R9.sm >> Euppp_res.dat
grep "R=" Euppp_R10.sm >> Euppp_res.dat
grep "E=" Euppp_R10.sm >> Euppp_res.dat
grep "Q=" Euppp_R10.sm >> Euppp_res.dat
grep "R=" Euppp_R11.sm >> Euppp_res.dat
grep "E=" Euppp_R11.sm >> Euppp_res.dat
grep "Q=" Euppp_R11.sm >> Euppp_res.dat
grep "R=" Euppp_R12.sm >> Euppp_res.dat
grep "E=" Euppp_R12.sm >> Euppp_res.dat
grep "Q=" Euppp_R12.sm >> Euppp_res.dat
echo " " >> Euppp_res.dat
grep "*** Final fit result" fits_Euppp.log >> Euppp_res.dat
