I am trying to use sed to remove entries from my dhcpd.conf file.
The form of the file is:
host foo {
option 1
option 2
}
host bar {
option 1
option 2
}
I was trying to use a label like:
sed -e :a -e "s/^host bar {[^}]*//g;/{/N;//ba" /etc/dhcpd.conf
I want to delete every from "host bar" to the "}".
Any thoughts?