I have this .xml file:
<docs>
<doc>
Some text
</doc>
<doc>
here some
</doc>
<doc>
text here
</doc>
</docs>
I am trying to use csplit in order to get only the text parts. This is what I came up with.
$ csplit docs.xml '%^<docs>%1' '/^<\/doc/1' '{*}'