21 |
fi |
fi |
22 |
if [ -r $1/input/output.txt ]; then |
if [ -r $1/input/output.txt ]; then |
23 |
grep "$2" $1/input/output.txt | sed 's/.*=//' | nl > tmp1.txt |
grep "$2" $1/input/output.txt | sed 's/.*=//' | nl > tmp1.txt |
24 |
|
lncnt=`wc -l tmp1.txt | awk '{print $1}' ` |
25 |
|
if [ $lncnt -lt 3 ]; then |
26 |
|
if [ $verbose -gt 0 ]; then |
27 |
|
echo Not enough lines of output when searching for "$2" 1>&2 |
28 |
|
fi |
29 |
|
return 99 |
30 |
|
fi |
31 |
else |
else |
32 |
echo testoutput_for_prop: output.txt from model run was not readable 1>&2 |
echo testoutput_for_prop: output.txt from model run was not readable 1>&2 |
33 |
return 99 |
return 99 |
36 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 |
echo testoutput_for_prop: grep "$2" $1/results/output.txt 1>&2 |
37 |
fi |
fi |
38 |
grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt |
grep "$2" $1/results/output.txt | sed 's/.*=//' | nl > tmp2.txt |
39 |
|
lncnt=`wc -l tmp2.txt | awk '{print $1}' ` |
40 |
|
if [ $lncnt -lt 3 ]; then |
41 |
|
if [ $verbose -gt 0 ]; then |
42 |
|
echo Not enough lines of output when searching for "$2" 1>&2 |
43 |
|
fi |
44 |
|
return 99 |
45 |
|
fi |
46 |
if [ $debug -gt 0 ]; then |
if [ $debug -gt 0 ]; then |
47 |
echo testoutput_for_prop: join tmp1.txt tmp2.txt 1>&2 |
echo testoutput_for_prop: join tmp1.txt tmp2.txt 1>&2 |
48 |
fi |
fi |