From the above xml i need to search for the string 4000004769 and i need to extract the whole xml structure. I know we can extract this by using awk or sed. but how we can search and extract.
The xml structure is repeating in the file again and agani with different value for the businesspartnerid.the id value will be unique. so i need to get only that xml structure which has the id value.
It works. It was an error from my side as i was storing the result of awk to an another variable. But missed the $(awk) part. Thanks for your great help
TMP will collect the entire xml- block as presented. If you have several of those blocks, we need to redesign the short script (which was just an untested sketch anyhow).