I"m trying to extract certain parts of a block of configuration options (from Nagios) but not sure the best way to do it, I'm sure I could do it with regex, just can't get it to work
This is the (shortened) syntax of what I'm working with:
service_description=McAfee DAT Date
I want to extract certain lines, like host_name,service_description (if it's a servicestatus) depending on certain conditions, i.e. notifications_enabled=0.
Any ideas appreciated