I have a XML files with data in it that I need to extract with a Linux Bash Script. For example, I need everything in the brackets and to print out in terminal accordingly (first name in next to first description).What is the best way to do this? I was able to do it with c# using XPath, but I can't do that simply using a Linux Bash Script correct? I know I can get most of it done with awk, sed, grep, cut ect, but I don't think (actually I know I am not) doing it properly. I am at a point were I extracted description data to a file and name to a file, but after a few hours, I realized this is not the best/proper way. Example of how it should read is.
- name1 - description1
- name2 - description2
- name3 - (blank)
- name4 - description3