Jad,
regarding your question about the list of domains and whois, then greping
for expiry date and name servers:
well here is my contribution:
#!/bin/bash
for domain in `cat list.txt`
do
whois $domain | awk 'BEGIN {i=0;StartRecord=0;EndRecord=0} /xpire/
{print} { x[i]=$0;i++} /server/ {StartRecord=NR} {if
(NR>(StartRecord+1)&& StartRecord!=0 && NF==0 && EndRecord==0)
EndRecord=NR }END {for (j=StartRecord;j<EndRecord;j++) print x[j]}' >
$domain.txt
done
Hope this helps
Ali Al-Khalidi
_______________________________________________
General mailing list
[email protected]
http://mail.jolug.org/mailman/listinfo/general_jolug.org