/ Published in: Bash
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
wget http://www.google.com/ig/api?weather=$1 -O wr.dat -q cat wr.dat | awk {'print substr($L, index($L,"high data")+11, 2)","'} cat wr.dat | awk {'print substr($L, index($L,"low data")+10, 2)'}