Skip to content
Advertisement

Tag: xml-parsing

Filtering a Block

I have multiple blocks of the below pattern I want to extract a block with Particular ID and Particular Name. The output should display For example :- I wanted to do using grep, sed, awk Thanks. Answer This sed should work for you: But you’d better use an xml parser as xmllint or xmlstarlet to parse valid xml files.

Advertisement