#/bin/bash

stanza=$1
field=$2

found=0
while read -r line
do
    f1=$(echo $line | cut -f1 -d:); 
    if [ $found -eq 1 ]; then
        f2=$(echo $line | cut -f2 -d: | sed 's/^[[:space:]]*//'); 
        if [ "$f1" = "$field" ]; then
            echo $f2 | egrep -o '^[[:space:]]*([\+]*[0-9]*[.]*[0-9]*)'; 
            found=0
            break;
        else
            continue
        fi
    else 
        [ "$f1" = "$stanza" ] && found=1 && continue
    fi
done

