sed add line after match from source file

for dom in `cat dom`; do sed -i '/\/'$dom'.db/a \\tallow-transfer {127.0.0.1;};' /etc/named.conf ; done

Leave a Reply

Your email address will not be published. Required fields are marked *