I have a large text file on my server that has a list of domains in which I need to get contact information. Here is an example of what appears to me when I run whois on stackoverflow.com:
root@server [~]
What I need to do is extract certain information from each request. The problem is that I do not understand how to extract only contact letters from each whois domain, because each whois result differs depending on the registrar.
For example, this is how I would like it to work:
At the command line, my server should check whois information for each domain name and export all the results to a new text file that will contain only email addresses for domain name owners. The name of the file containing all domains is domain.txt, and I would like the new file to be named new.txt, if possible.
Any help with this would be greatly appreciated. Thanks in advance!
source share