Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

script to run whois on a text file with each line containing the domain name

Posted on 2013-12-31
1
Medium Priority
?
690 Views
Last Modified: 2014-01-01
I have a text file with a list of domain names like this:
1.com
2.com

I would like to run a simple script that runs the command jwhois on each line of the file and pipes the output to a file.
I would like to be able to grep the results for specific fields only as the output contains much redundant info.

Thanks

Jonny
0
Comment
Question by:007SI
1 Comment
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 2000 total points
ID: 39748904
xargs -n1 jwhois < inputfile.txt > outputfile.txt
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction On September 29, 2012, the Python 3.3.0 was released; nothing extremely unexpected,  yet another, better version of Python. But, if you work in Microsoft Windows, you should notice that the Python Launcher for Windows was introduced wi…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question