#!/bin/csh

rm -f Eup_R*.gif
rm -f Eup_R*.ps
rm -f Eup_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_Eup.log
y
/home1/REFINED_DATA/su3/B30_AR3_15x15x15x45/B30_AR3_15x15x15x45_effmass
0
10
2
2
1
4
1

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

2
2
4
1

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

2
3
4
1

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

2
4
4
1

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

2
5
4
1

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

2
6
4
1

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

2
7
4
1

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

2
8
4
1

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

2
9
4
1

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

9
END
/usr/local/bin/ps2gif Eup_R1
/usr/local/bin/ps2gif Eup_R2
/usr/local/bin/ps2gif Eup_R3
/usr/local/bin/ps2gif Eup_R4
/usr/local/bin/ps2gif Eup_R5
/usr/local/bin/ps2gif Eup_R6
/usr/local/bin/ps2gif Eup_R7
/usr/local/bin/ps2gif Eup_R8
/usr/local/bin/ps2gif Eup_R9
grep "R=" Eup_R1.sm >! Eup_res.dat
grep "E=" Eup_R1.sm >> Eup_res.dat
grep "Q=" Eup_R1.sm >> Eup_res.dat
grep "R=" Eup_R2.sm >> Eup_res.dat
grep "E=" Eup_R2.sm >> Eup_res.dat
grep "Q=" Eup_R2.sm >> Eup_res.dat
grep "R=" Eup_R3.sm >> Eup_res.dat
grep "E=" Eup_R3.sm >> Eup_res.dat
grep "Q=" Eup_R3.sm >> Eup_res.dat
grep "R=" Eup_R4.sm >> Eup_res.dat
grep "E=" Eup_R4.sm >> Eup_res.dat
grep "Q=" Eup_R4.sm >> Eup_res.dat
grep "R=" Eup_R5.sm >> Eup_res.dat
grep "E=" Eup_R5.sm >> Eup_res.dat
grep "Q=" Eup_R5.sm >> Eup_res.dat
grep "R=" Eup_R6.sm >> Eup_res.dat
grep "E=" Eup_R6.sm >> Eup_res.dat
grep "Q=" Eup_R6.sm >> Eup_res.dat
grep "R=" Eup_R7.sm >> Eup_res.dat
grep "E=" Eup_R7.sm >> Eup_res.dat
grep "Q=" Eup_R7.sm >> Eup_res.dat
grep "R=" Eup_R8.sm >> Eup_res.dat
grep "E=" Eup_R8.sm >> Eup_res.dat
grep "Q=" Eup_R8.sm >> Eup_res.dat
grep "R=" Eup_R9.sm >> Eup_res.dat
grep "E=" Eup_R9.sm >> Eup_res.dat
grep "Q=" Eup_R9.sm >> Eup_res.dat
echo " " >> Eup_res.dat
grep "*** Final fit result" fits_Eup.log >> Eup_res.dat
