#cat $1 | awk '/IN.*A/ { print $1 }' | sed 's/\.$//' cat $1 | awk '/IN.*A/ { print $1 }' | sed 's/\.$//' | sort | uniq