bash scripting or perl
Jandre Olivier <[email protected]> Mon, 18 Oct 2004 14:56:04 +0200
| Newsgroups | gmane.linux.admin.managers |
|---|---|
| Message-ID | <[email protected]> |
Hi guys,
This might be a little off the topic, but all linux guys have some
scripting quality and i feel very stupid for not knowing how to do this,
but thats why there is questions, so excuse my stupidity.
im trying to figure out how to write a little command line interface for
my bind server as there is no opensource one available or can't find
besides webmin
my /etc/named.conf file has 1000's of entries inside it in this kinda format
zone "megasurf.com" {
type master;
allow-transfer { 206.25.193.131; localhost; };
file "megasurf.com";
};
zone "meryl-hefer.com" {
type master;
allow-transfer { 206.25.193.131; localhost; };
file "meryl-hefer.com";
};
zone "merylhefer.com" {
type master;
allow-transfer { 206.25.193.131; localhost; };
file "merylhefer.com";
where must is start if i would like to search and delete say
megasurf.com and the 2 lines that work with it, i already have scripts
to add new domains by using a template file and just append to the file,
but to delete seems very difficly as i tried regex to delete the whole
string, but doesnt work
im not sure how i should start having a look into this,
Thanks
Jandre
--
Regards
Jandre
"Some people are alive only because
it is illegal to kill them."
_____________________________________________________
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers