I have little problem with deleting multiple lines with sed. I read a lot of guides and discussions, but none of them helped. I have a xml file, and I need to delete more occurences of these three lines:
<function type="class">
<arg name="class.name">com.mycompany.name.UnLockIssueFunction</arg>
</function>
I wanted to use deleting just the part between <function>
, but there is more of this tags. My xml file looks like this
<post-functions>
<function type="class">
<arg name="class.name">com.mycompany.name.function.issue.UpdateIssueStatusFunction</arg>
</function>
<function type="class">
<arg name="class.name">com.mycompany.name.function.misc.CreateCommentFunction</arg>
</function>
<function type="class">
<arg name="class.name">com.mycompany.name.function.issue.GenerateChangeHistoryFunction</arg>
</function>
<function type="class">
<arg name="class.name">com.mycompany.name.function.issue.IssueReindexFunction</arg>
</function>
<function type="class">
<arg name="class.name">com.mycompany.name.function.event.FireIssueEventFunction</arg>
<arg name="eventTypeId">13</arg>
</function>
<function type="class">
<arg name="class.name">com.mycompany.name.UnLockIssueFunction</arg>
</function>
</post-functions>