Thanks! I ended up using the following sed command:

grep CorpActnEvtId | sed -e 's/.*<CorpActnEvtId>//' | sed -e 's/<\/Cor +pActnEvtId.*//' > file.out

I apologize for the late response. Something urgently came up that day and i'm just now able to reply.


In reply to Re^2: Strip out value between xml tags by dirtdog
in thread Strip out value between xml tags by dirtdog

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":