from http://www.taugh.com/grepcidr-2/