Main

Compare new with existing List

If we find new domains which we want to add to our list, we often do not know if some are allready in our existing list. We should try to avoid duplicated entries. The following script takes a list with the new TLD's and compares it to an existing list. If a TLD does not already exist, it will be added to the delta.txt list.

#!/bin/bash
								# read the new list
t=$(cat new_tld.txt)
for i in $t
do
								# Check if the existing list allready cointains the string 
	cat existing_tld.txt | grep $i
if
								# Test exit status from grep
	[ $? -ne 0 ]
then
								# exit status is one, so the string does not exist. Therefore it is added to a new file.
	echo $i >> delta.tx
fi
done

Show dublicated entries

If we copy and past to our exisitng list of TLD's, it may be possible that there are duplicated items over time. The following script shows how often a TLD appears in the list.

Current List

More information: https://www.quora.com/Where-can-I-find-a-complete-list-of-all-registered-domain-namesarrow-up-right

Last updated