Skip to content

Instantly share code, notes, and snippets.

@waffle2k
Created April 2, 2014 15:53
Show Gist options
  • Save waffle2k/9936974 to your computer and use it in GitHub Desktop.
Save waffle2k/9936974 to your computer and use it in GitHub Desktop.
Toronto weather
#!/bin/sh
curl -s weather.opensrs.com | perl -E 'print grep { /Currently/ .. /-?\d+\.\d+/ } <>' | perl -lane 'print $1 if /(-?\d+\.\d+)/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment