Skip to content

Instantly share code, notes, and snippets.

@ttlequals0
Created December 6, 2015 21:19
Show Gist options
  • Save ttlequals0/71a4a299343f94d57529 to your computer and use it in GitHub Desktop.
Save ttlequals0/71a4a299343f94d57529 to your computer and use it in GitHub Desktop.
cat outage.log |awk {'print $1'} |sort |uniq -c | sort -k1nr | awk {'print $2'} >> outages_ips
for i in $(cat outages_ips); do whois $i |grep Organization: && echo $i && echo ------------------- ;done >> outage_matches.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment