Shell output with plot a tree structure.

Hi All,

        i am in need of plotting graph \( tree structure \) depends upon my shell script output.

For this requirement, what kind of open source avail in market.

For example: (my script output will be like below )
Parent:A
process-name:child-processes
A:B,C
B: D

expecting tree like below (sample)
A
B C
D

please help me on this , which tool can i use for this ?

thanks in advance
PONMUTHU M :b:

Your example is vertical tree graph, but often horizontal is easier, with indent for tree depth.

You could put it in a ksh/bash associative array so you can recall the subtrees in a controlled fashion, key root level has a, key a contains 'b c' and key b has 'd'.