Creating Zone files from named.conf

In this instance I was creating slave zone files from the named.conf, which had zone entires for all zones in the format bak.domain.edu. The sed business removes extraneous characters I encountered, it may need tuning depending on how your named.conf is formated.

# for line in `grep bak. /var/named/chroot/etc/named.conf | awk '{print $2}' |sed 's/.\(.*\)/\1/' |sed 's/\(.*\)../\1/'`;do touch $line;done