Posted By

orenus on 06/30/10


Tagged

Bash oop getweather Lesson2


Versions (?)

Get Weather Shell Script


 / Published in: Bash
 

  1. wget http://www.google.com/ig/api?weather=$1 -O wr.dat -q
  2. cat wr.dat | awk {'print substr($L, index($L,"high data")+11, 2)","'}
  3. cat wr.dat | awk {'print substr($L, index($L,"low data")+10, 2)'}

Report this snippet  

You need to login to post a comment.