I have a file with contents like below: {  applications: [    {      id: 2537302,      name: addressdb_prod,      language: dotnet,      health_status: unknown,      reporting: true,      last_reported_at: 2017-08-03T10:41:52+00:00,      application_summary: {      response_time: 5.04,      more content here....      and finally the following lines towards the end of the file     },      links: {        application_instances: [],        servers: [],        application_hosts: []      }    }    ],  links: {    application.servers: /v2/servers?ids={server_ids},    application.server: /v2/servers/{server_id},    application.application_hosts: /v2/application/{application_id}/hosts?ids={host_ids},    application.application_host: /v2/application/{application_id}/hosts/{host_id},    application.application_instances: /v2/application/{application_id}/instances?ids={instance_ids},    application.application_instance: /v2/application/{application_id}/instances/{instance_id},    application.alert_policy: /v2/alert_policies/{alert_policy_id}  }}What I would like is run sed command to strip out below parts:{  applications: [from the beginning of the file, and also anything starting from below parts till end of the file. ],  links: {
Use sed to replace some string in a file
text processing;sed