#!/bin/csh

rm -f B2u_gap_PD_R*.gif
rm -f B2u_gap_PD_R*.ps
rm -f B2u_gap_PD_R*.sm
/home/colin/research/analysis/RUN/pot_sitwo_exp_fit_run << END
/home1/REFINED_DATA/su3/B300_AR3/ref_PD_B300_AR3_S
fits_B2u_gap_PD.log
n
1
8
1
3
1
5
1

8
1
15
1
15
1
65
n
n
y
4
B2u_gap_PD_R1
n

3
2
5
1

8
1
15
1
15
1
65
n
n
y
4
B2u_gap_PD_R2
n

3
3
5
1

8
1
15
1
15
1
65
n
n
y
4
B2u_gap_PD_R3
n

3
4
5
1

8
1
15
1
15
1
65
n
n
y
4
B2u_gap_PD_R4
n

3
5
5
1

8
1
15
1
11
1
65
n
n
y
4
B2u_gap_PD_R5
n

3
6
5
1

8
1
15
1
11
1
65
n
n
y
4
B2u_gap_PD_R6
n

3
7
5
1

8
1
15
1
11
1
65
n
n
y
4
B2u_gap_PD_R7
n

9
END
/usr/local/bin/ps2gif B2u_gap_PD_R1
/usr/local/bin/ps2gif B2u_gap_PD_R2
/usr/local/bin/ps2gif B2u_gap_PD_R3
/usr/local/bin/ps2gif B2u_gap_PD_R4
/usr/local/bin/ps2gif B2u_gap_PD_R5
/usr/local/bin/ps2gif B2u_gap_PD_R6
/usr/local/bin/ps2gif B2u_gap_PD_R7
grep "R=" B2u_gap_PD_R1.sm >! B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R1.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R1.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R2.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R2.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R2.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R3.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R3.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R3.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R4.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R4.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R4.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R5.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R5.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R5.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R6.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R6.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R6.sm >> B2u_gap_PD_res.dat
grep "R=" B2u_gap_PD_R7.sm >> B2u_gap_PD_res.dat
grep "Delta" B2u_gap_PD_R7.sm >> B2u_gap_PD_res.dat
grep "Q=" B2u_gap_PD_R7.sm >> B2u_gap_PD_res.dat
echo " " >> B2u_gap_PD_res.dat
grep "*** Final fit result" fits_B2u_gap_PD.log >> B2u_gap_PD_res.dat
