whois script
From: Paul Roddy (proddy_at_noemail.com.com)
Date: 10/06/04
- Next message: Don: "Anyone know hoe to configure a network card in Fedora Core 2?"
- Previous message: Mike: "kernel 2.6?"
- Next in thread: Spamless: "Re: whois script"
- Reply: Spamless: "Re: whois script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 6 Oct 2004 10:20:40 -0500
I want to write a small script to check the whois information for domains
that I want to check on. The information I want is when the domain expires.
problem I am having is when I check a .com domain, the text returned is
"Expires" and when I check a .ca domain, the text I'm looking for is
"Renewal" How can I write this script to check for either word and grep it
out without having to run the whois command twice?
Here's my script so far:
#!/bin/sh
echo
echo -n "Enter domain name to check: "
read DOMAIN
echo "Checking whois information for $DOMAIN..."
whois $DOMAIN | grep Expires
whois $DOMAIN | grep Renewal
- Next message: Don: "Anyone know hoe to configure a network card in Fedora Core 2?"
- Previous message: Mike: "kernel 2.6?"
- Next in thread: Spamless: "Re: whois script"
- Reply: Spamless: "Re: whois script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|