Last active
April 24, 2017 18:03
-
-
Save glamrock/f7d0ee737507d5efd272086ec51e6735 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
IPLIST="ips.txt" | |
while read IP; do | |
echo "" | |
echo "$IP" | |
whois "$IP" | grep descr | |
whois "$IP" | grep changed | |
dig -x "$IP" +short | head -1 | |
echo "" | |
done < "$IPLIST" >ipsout.txt | |
# ^ *[0-9]+ .+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment