I want to select a particular part of a text file and print it / store on store in another file.
selectionSelection starts when a particular pattern matches and ends when another pattern matches. and i'veAnd I have to do it without awk.. i'm I'm trying using sed.
- start selection when found expected
- up to when found actual
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
> |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",
> expected collection contained: [{"id"=>18646, "state"=>"available", "salesEndAtUtc"=>"2018-09-22T00:00:00.000Z",