#!/bin/sh # original host host $1 | grep " A " | awk '{print $3}' # bind9-host host $1 | grep 'has address' | awk '{ print $4 }'