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