!/bin/sh group=`cat list` for each in $group; do echo "Testing $each" test=`whois $each.dk|grep entries` if [ "$test" ]; then echo "$each" >> free fi test="" done