hello all.
so i'm sending some text (xml) to sed and I have a particular string that I can match.
Thing is, I need the line
after the string to be displayed.
text looks like this:
Quote:
<versionEffectiveDate>2006-10-27</versionEffectiveDate>
<Counterparty>
<standardPartyId>0141747</standardPartyId>
</Counterparty>
<Owner>
<standardPartyId>7066589</standardPartyId>
</Owner>
|
I need the line that comes after the string <Owner> (i.e. the line with 7066589 in it.
I've tried this:
cat file.xml | sed -n -e '/<Owner>/n'
but I get nothing returned. I need to do this on a whole bunch of files.
Many thanks in advance for any replies.