#!/bin/sh while read HEST do whois "${HEST}.dk" |grep -q entries && echo "${HEST}" >> free done < list1