#!/bin/csh

rm -f B2u_R*.gif
rm -f B2u_R*.ps
rm -f B2u_R*.sm
/home/colin/research/analysis/RUN/pot_two_exp_fit_run << END
/home1/REFINED_DATA/su3/B24_AR5_10x10x10x56/B24_AR5_10x10x10x56_refbins
fits_B2u.log
y
/home1/REFINED_DATA/su3/B24_AR5_10x10x10x56/B24_AR5_10x10x10x56_effmass
0
8
1
2
1
4
1

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

2
2
4
1

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

2
3
4
1

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

2
4
4
1

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

2
5
4
1

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

2
6
4
1

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

2
7
4
1

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

2
8
4
1

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

9
END
/usr/local/bin/ps2gif B2u_R1
/usr/local/bin/ps2gif B2u_R2
/usr/local/bin/ps2gif B2u_R3
/usr/local/bin/ps2gif B2u_R4
/usr/local/bin/ps2gif B2u_R5
/usr/local/bin/ps2gif B2u_R6
/usr/local/bin/ps2gif B2u_R7
/usr/local/bin/ps2gif B2u_R8
grep "R=" B2u_R1.sm >! B2u_res.dat
grep "E=" B2u_R1.sm >> B2u_res.dat
grep "Q=" B2u_R1.sm >> B2u_res.dat
grep "R=" B2u_R2.sm >> B2u_res.dat
grep "E=" B2u_R2.sm >> B2u_res.dat
grep "Q=" B2u_R2.sm >> B2u_res.dat
grep "R=" B2u_R3.sm >> B2u_res.dat
grep "E=" B2u_R3.sm >> B2u_res.dat
grep "Q=" B2u_R3.sm >> B2u_res.dat
grep "R=" B2u_R4.sm >> B2u_res.dat
grep "E=" B2u_R4.sm >> B2u_res.dat
grep "Q=" B2u_R4.sm >> B2u_res.dat
grep "R=" B2u_R5.sm >> B2u_res.dat
grep "E=" B2u_R5.sm >> B2u_res.dat
grep "Q=" B2u_R5.sm >> B2u_res.dat
grep "R=" B2u_R6.sm >> B2u_res.dat
grep "E=" B2u_R6.sm >> B2u_res.dat
grep "Q=" B2u_R6.sm >> B2u_res.dat
grep "R=" B2u_R7.sm >> B2u_res.dat
grep "E=" B2u_R7.sm >> B2u_res.dat
grep "Q=" B2u_R7.sm >> B2u_res.dat
grep "R=" B2u_R8.sm >> B2u_res.dat
grep "E=" B2u_R8.sm >> B2u_res.dat
grep "Q=" B2u_R8.sm >> B2u_res.dat
echo " " >> B2u_res.dat
grep "*** Final fit result" fits_B2u.log >> B2u_res.dat
