You can check the year that a domain was registered with the following command:
whois example.com | grep -i 'creat' | head -n1 | grep -o '[[:digit:]]{4}'The above line does the following:
You can extract the exact day with the following command:
whois example.com | grep -i 'creat' | head -n1 | \
egrep -o '[[:digit:]]{2}-[a-zA-Z0-9]{1,10}-[[:digit:]]{4}'It works in a similar manner to the first example, but uses a regular expression to extract the full date.
You can also run this on a list of domains in a text file by reading each line of the file.
Did you find this post helpful? Leave a comment below, and subscribe to my RSS feed.