#!/bin/csh

rm -f Eg_R*.gif
rm -f Eg_R*.ps
rm -f Eg_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3/B240_AR5_B/ref5_B24AR5
fits_Eg.log
y
/home1/REFINED_DATA/su3/B240_AR5_B/effmass5
0
9
1
2
1
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R1
n

2
2
4
1

2
7
1
8
1
1024
n
n
y
4
Eg_R2
n

2
3
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R3
n

2
4
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R4
n

2
5
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R5
n

2
6
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R6
n

2
7
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R7
n

2
8
4
1

2
7
1
16
1
1024
n
n
y
4
Eg_R8
n

9
END
/usr/local/bin/ps2gif Eg_R1
/usr/local/bin/ps2gif Eg_R2
/usr/local/bin/ps2gif Eg_R3
/usr/local/bin/ps2gif Eg_R4
/usr/local/bin/ps2gif Eg_R5
/usr/local/bin/ps2gif Eg_R6
/usr/local/bin/ps2gif Eg_R7
/usr/local/bin/ps2gif Eg_R8
grep "R=" Eg_R1.sm >! Eg_res.dat
grep "E=" Eg_R1.sm >> Eg_res.dat
grep "Q=" Eg_R1.sm >> Eg_res.dat
grep "R=" Eg_R2.sm >> Eg_res.dat
grep "E=" Eg_R2.sm >> Eg_res.dat
grep "Q=" Eg_R2.sm >> Eg_res.dat
grep "R=" Eg_R3.sm >> Eg_res.dat
grep "E=" Eg_R3.sm >> Eg_res.dat
grep "Q=" Eg_R3.sm >> Eg_res.dat
grep "R=" Eg_R4.sm >> Eg_res.dat
grep "E=" Eg_R4.sm >> Eg_res.dat
grep "Q=" Eg_R4.sm >> Eg_res.dat
grep "R=" Eg_R5.sm >> Eg_res.dat
grep "E=" Eg_R5.sm >> Eg_res.dat
grep "Q=" Eg_R5.sm >> Eg_res.dat
grep "R=" Eg_R6.sm >> Eg_res.dat
grep "E=" Eg_R6.sm >> Eg_res.dat
grep "Q=" Eg_R6.sm >> Eg_res.dat
grep "R=" Eg_R7.sm >> Eg_res.dat
grep "E=" Eg_R7.sm >> Eg_res.dat
grep "Q=" Eg_R7.sm >> Eg_res.dat
grep "R=" Eg_R8.sm >> Eg_res.dat
grep "E=" Eg_R8.sm >> Eg_res.dat
grep "Q=" Eg_R8.sm >> Eg_res.dat
echo " " >> Eg_res.dat
grep "*** Final fit result" fits_Eg.log >> Eg_res.dat
