#!/bin/csh

rm -f Eg_gap_R*.gif
rm -f Eg_gap_R*.ps
rm -f Eg_gap_R*.sm
/home/colin/research/analysis/RUN/pot_sitwo_exp_fit_run << END
/home1/REFINED_DATA/su3/B24_AR5_10x10x10x56/B24_AR5_10x10x10x56_refbins
fits_Eg_gap.log
y
/home1/REFINED_DATA/su3/B24_AR5_10x10x10x56/B24_AR5_10x10x10x56_effmass
0
9
1
3
1
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R1
n

3
2
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R2
n

3
3
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R3
n

3
4
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R4
n

3
5
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R5
n

3
6
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R6
n

3
7
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R7
n

3
8
5
1

1
8
1
12
1
12
1
512
n
n
y
4
Eg_gap_R8
n

9
END
/usr/local/bin/ps2gif Eg_gap_R1
/usr/local/bin/ps2gif Eg_gap_R2
/usr/local/bin/ps2gif Eg_gap_R3
/usr/local/bin/ps2gif Eg_gap_R4
/usr/local/bin/ps2gif Eg_gap_R5
/usr/local/bin/ps2gif Eg_gap_R6
/usr/local/bin/ps2gif Eg_gap_R7
/usr/local/bin/ps2gif Eg_gap_R8
grep "R=" Eg_gap_R1.sm >! Eg_gap_res.dat
grep "Delta" Eg_gap_R1.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R1.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R2.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R2.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R2.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R3.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R3.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R3.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R4.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R4.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R4.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R5.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R5.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R5.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R6.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R6.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R6.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R7.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R7.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R7.sm >> Eg_gap_res.dat
grep "R=" Eg_gap_R8.sm >> Eg_gap_res.dat
grep "Delta" Eg_gap_R8.sm >> Eg_gap_res.dat
grep "Q=" Eg_gap_R8.sm >> Eg_gap_res.dat
echo " " >> Eg_gap_res.dat
grep "*** Final fit result" fits_Eg_gap.log >> Eg_gap_res.dat
