#!/bin/sh # Convert /etc/hosts to tinydns setup commands. grep 192 /etc/hosts | awk '{ host = $1 ; print "./add-host " $2 " " host ; for (i=3 ; i<=NF; i++) { print "./add-alias " $i " " host } }'