
May 10th, 2011, 07:36 PM
|
|
|
|
I'd suggest looking at perl and using a dedicated XML parsing module to do this, or giving awk a go
If you have to do it in shell script it will go a lot easier if you can guarantee that each tag will be on a single line.
__________________
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
|