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:
<car car_id="BMW" year="1999" color="blue> ... </car>
Instead I get back a bunch of other car elements.