#!/bin/sh cat list2 | while read HEST do if whois "${HEST}.dk" |grep -q entries then echo "${HEST}" >> free fi done