Hi Team,
I am new to shell script, i have knowledge of basic unix command but that doesn't seem working for my current task.
Please help me with following problem:
I have a xml file for e.g.
<ShippingInstructions>
<name>Sarah Bell</name>
<address>400 Oracle Parkway
Redwood Shores
CA
94065
USA</address>
<telephone>650 506 7400</telephone>
</ShippingInstructions>
Now i have to write shell script to read xml file line by line and basis on '<', extract first word go on till u get complete hierarchy like in above ex output should be "1.ShippingInstructions/name
2.ShippingInstructions/address
3.ShippingInstructions/telephone
Awk command is also not giving expected output
Awaiting for response.
Thanks!