I found a neat RESTful WHOIS service which returns WHOIS data for an IP formatted as JSON.
Add in a little command line tool called
jq, which let's you
grep JSON and you are all set to grab the abuse contact email address for any given IP address.
curl -s http://adam.kahtava.com/services/whois.json?query=<IP>| jq '.RegistryData.AbuseContact.Email'
jq all you have to do is to download the jq binary no install necessary.