4

Need help regarding String editing

view full story
linux-howto

http://www.unix.com – Hi Geeks I am working on trimming the logs and extracting the XMLs from it. I am facing one problem here. My XML String is ending with ...........Request></Body></Envelope>S/R sometimes there is more then just S/R in the end. I want to delete anything comes after </Envelope> Tag. I tried AWK to find the position of envelope but it says string loo long. Please provide some help here (HowTos)