in reply to How i can extract the part of server report log based on Ipaddress

A sed solution,

sed -n '/<request>/,/<\/request>/{/<request>/!{H;/<ipAddress>10.146.163.43<\/ipAddress>/{x;p;:a;n;p;/<\/request>/!ba}};/<request>/{h} }' <filename>
  • Comment on Re: How i can extract the part of server report log based on Ipaddress
  • Download Code

Replies are listed 'Best First'.
Re^2: How i can extract the part of server report log based on Ipaddress
by perladdict (Chaplain) on Aug 19, 2010 at 08:38 UTC
    Hi suhailck,
    THanks a lot,i tried my task by your sed code, it is working perfectly.Can you please explain in detail about this command, i gone through the sed online tutorial, still i unable to understand some of the thigs in this code
    in your sed code. If you provide some cool sed tutorial stuff link, it will be a greate help for me in future.