| Newsgroups |
gmane.editors.sed.user |
| Message-ID |
<[email protected]> |
Greetings to all.
I have come across what seems to be a quite simple problem involving an
application of sed in the context of text-block deletion. Here's the
hypothetical text block in question:
<property name="name">
...
</property>
</property>
Now, deleting all from <property name="name"> to the _/first/_
</property> tag is understandable enough:
Code:
sed -i '/<property name="name">*$/,/<\/property>*$/d' /file.xml
However, incorporating the 2nd </property> tag in the deletion sweep is
a bit tougher; and just that much outside my new skillset range ;o)
Any ideas as to how one might amend this "one-liner" to make it all work?
Thanks!
----
[Non-text portions of this message have been removed]