Hi all, I was wondering if anyone would know how to search & delete inclusively between two lines, please:
Important:
There are multiple }; lines. I'm curious how to delete the correct one only.
Line numbers may vary each time this script is run.
For example, I'd like to delete only the entire entry called deletethisentry.com
zone "localhost" {
type master;
notify no;
file "db.myzone";
};
zone "deletethisentry.com" {
type master;
notify no;
file "db.myzone";
};
zone "keepthisentry.com" {
type master;
notify no;
file "db.myzone";
};