Extracting XML that matches starting and ending patterns
Posted
by syker
on Stack Overflow
See other posts from Stack Overflow
or by syker
Published on 2010-06-12T01:57:23Z
Indexed on
2010/06/12
2:02 UTC
Read the original article
Hit count: 291
sed
I am using sed to extract parts of an XML I am interested in:
sed '/<car car_id="BMW" year="1999"/,/</car>/p' input
So what I really would like to get back is: ...
Instead I get back a bunch of other car elements.
© Stack Overflow or respective owner