I asked WL how he would parse the index from a shell variable and he suggested using ## i.e:
oid=.1.2.3.4.5.6
echo ${oid##*.}
which returns 6. This uses the sh shell expansion which greedily masks all of the patterns which match the wildcard leaving the last value which doesn’t match. Amazing…