I need help with this shell script for a program I need (open source license):
given a file with domain names like this: "example.com" "example.org" etc., each on a single lineincluding the quotes I need a new file with something like this: (below should come out as two lines, each one starting with the word zone: <snip> zone "example.com" { type slave; file "/var/named/slaves/namedftp/69.26.172.68/example.com.db"; masters { 69.26.172.68; }; }; zone "example.net" { type slave; file "/var/named/slaves/namedftp/69.26.172.68/example.net.db"; masters { 69.26.172.68; }; }; </snip> Note that the lines are the same except where the domain names differ. Help is appreciated. Thanks. Jeff -- Jeff Lasman, Nobaloney Internet Services P.O. Box 52200, Riverside, CA 92517 Our jplists address used on lists is for list email only voice: +1 951 643-5345, or see: "http://www.nobaloney.net/contactus.html"