One Reply to “Using sed for text search across multiple lines”

  1. egrep -i “8HMJVT|8HMRGR” /logs/webhalwCluster/* > research.txt
    sed -n ‘/ImmigrationUpdate : Request :/,/<\/CruiseLineRequest>/p’ SystemOut.log
    sed -n ‘/ImmigrationUpdate : Response :/,/<\/CruiseLineResponse>/p’ SystemOut.log

Leave a Reply