A Simple Text-Region Deletion Question . . .

"'Marcus L. Thompson' [email protected] [sed-users]" <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.