Roland Mainz wrote:
> Ok... two questions:
> 1. How can a Bourne[1] shell script get the number of values in a
> property ?
> 2. How can I get value number <n> from a Bourne[1] shell script ?

I love sh puzzles...

Ignoring the possibility of feeding it through awk or something like 
that, how about...

set -- `svccfg -s svc:/application/mydaemon listprop my/prop`
shift 2
echo $#
echo $1
echo $2
...
?

Processing the quoting right is left as an exercise for the reader (but, 
hint:  I suspect that "eval" is your friend).

Reply via email to