> > sed '/zone "domain.com" {/,/};/d' /etc/named.conf > newfile
> >
> > Instead of using actual line numbers for the range of lines (such as
> > "1,4") he uses two regexes that match to them.
> >
> > How might one do this in Perl?
> 
> Just the same way:
> 
> perl -ne 'print unless /zone "domain.com" {/ .. /};/' \
>     /etc/named.conf > newfile

Way better than my clunky idea!

Dan

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to