We have a config file which consists of more than 24000 lines.
I am stuck in one task. I need to segregate the lines starting as below (service definition of specific host in icinga2)
Object Service "<host_name>"{
And ending with
}
Files consists multiple other entries as well
I need to filter specific hosts definition alone.
jq
utility as icinga configs areJSON
files – Romeo Ninov Dec 02 '18 at 09:37