How we can create the master file through shell to show the tree structure of the directory?

Can we create the master file that show the whole tree structure of the directory till a particular folder?

Database that contains four sub repository Sybase,sql,oracle,mysql and sql and oracle contains two subrepostories Siebel and plsql and each repositories contains three folders (trunk,branch,tags)
As per below diagram. I want with the help of command I could get the whole path of the repository e.g.
Database/sql/sibel/tags
Database/oracle/plsql/tags

Database
i) Sybase(trunk,branch,tags)
ii) Sql----------------------sibel(trunk,branch,tags)
iii) Oracle----------------plsql(trunk,branch,tags)
iv) mysql(trunk,branch,tags)

You can postprocess a sorted listing in sed, pulling adjacent lines together in the buffer using N (careful about $), and replacing child lines with entries in the (...,...) list.