First get the json with all the IP ranges
wget https://developers.google.com/static/crawling/ipranges/common-crawlers.json -O google.txt
Use this script to get the results. It may be smart to grep on "time=" to just get the IPs that returned results/were pingable.
for ip in `cat google.txt |grep ipv4|cut -f 2 -d :|sed 's#"##g'|cut -f 1 -d /`; do
o1=`echo $ip|cut -f 1 -d .`
o2=`echo $ip........