in reply to Re^11: Deleting lines from named.conf file
in thread Deleting lines from named.conf file

Really thanks for you further assistance


but i used what you have said "paragraph mode" but there is also still a 2 blank lines between the zone assume that i have deleted a zone in the middle of 2 zones
the out is still just like that
zone "foo.com" { type xxxxx path xxxxx info xxxxx }; zone "blah.com" { type xxxxx path xxxxx info xxxxx }; zone "bar.com" { type xxxxx path xxxxx info xxxxx };
after running zonedel.pl with your new optimization
zone "foo.com" { type xxxxx path xxxxx info xxxxx }; #2 blanks still created # zone "bar.com" { type xxxxx path xxxxx info xxxxx };

i have read perlrun and i didnot find any switch that i can enable to eliminate the the blank lines created
what do you think about providing a line that makes a shifted up move after delete zone
or after deletion do
s/\n//;
to eliminate the created blank line so i will always have a one blank line between the two zones
and thanks again for your further support