I use an application which generates .xml files containing <date> lines
What I'd like to do is make them more readable by adding dashes like:
That should be a one-liner in sed, but I'm new to it and can't make it work.
Anyone know how?
The only additional factor I have is that occasionally there are also <date>
lines like this, which I want ignored (of course):
All lines that aren't <date> lines should also be ignored.
Thanks for any help