Hi,
I am a little stuck with a text extract issue. I have a files that would have a pattern as below
some text ...........
<error>
some message ..............
</error>
some text ...........
<error>
some message ..............
</error>
some text ...........
I am interested in extracting all the lines between <error> and </error>, including them. I can easily grep the line </error> or the line <error> but was not sure how to approach this. Is anything possible using sed or tr -d or something. Any suggestions would be great.
Thanks a lot
philipose
I am a little stuck with a text extract issue. I have a files that would have a pattern as below
some text ...........
<error>
some message ..............
</error>
some text ...........
<error>
some message ..............
</error>
some text ...........
I am interested in extracting all the lines between <error> and </error>, including them. I can easily grep the line </error> or the line <error> but was not sure how to approach this. Is anything possible using sed or tr -d or something. Any suggestions would be great.
Thanks a lot
philipose