> if "$2" == "(Yo" then {
> print sprintf("Yo was %f", yo)
> yo = sh { echo $3 | sed 's/\)#//' }
> print sprintf("Yo is %f", yo)
> }
Not sure I get the twists and turns of your shell, which one are you using
as I assume the subtle details are important here - is it bash? also who's grap
is this, is it plan9's or some unix/linux?
My take on the same parsing problem is:
larch% echo '(Yo 4.9524)' | awk '{print $2+0}'
4.9524
I don't know if this helps (probably not).
-Steve
