#!/bin/sh # (C) 2012 Peter Conrad # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . ./tinydns-sign.pl test/example.?sk data ./tinydns-data for i in test/q-*; do id="${i#test/q}" echo -n "$i ... " read sec type name <"$i" ./tinydns-get "$sec" "$type" $name | tail +2 >test/"o$id" sed -s 's/\b[0-9]\{10\}\b/