I want to select a particular part of a text file and print it/ store on another file.
selection starts when a particular pattern matches and ends when another pattern matches. and i've to do it without awk.. i'm trying using sed.
start selection when found expected upto when found actual
|e|build_event_details_json(e) }) expected collection contained: [{"id"=>18646, "state"=>"available", "salesEndAtUtc"=>"2018-09-22T00:00:00.000Z",actual collection contained: [{"id"=>18646
answer should be
expected collection contained: [{"id"=>18646, "state"=>"available", "salesEndAtUtc"=>"2018-09-22T00:00:00.000Z",