J="chicago"; \Feed it "dakar" by setting $J, and you get:
K=`echo $J | sed "s/ /_/g"`; \
elinks --source http://maps.google.com/maps?q=$K | \
sed "s/}/\n/g" | grep "hnear\|latlng:" | \
sed -e "s/,+/+/g" -e "s/[,={\"]/\n/g" | \
grep "\+\|l..:[0-9\-]"
Chicago+Cook+Illinois
lat:41.878113999999997
lng:-87.629797999999994
Dakar+Region+Dakar+SenegalWhat good is it? None, I'm sure.
lat:14.75
lng:-17.333333
If i run this on a machine will this tell me the location?
ReplyDelete