Skip to content

Instantly share code, notes, and snippets.

@rupertbates
Created September 4, 2015 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupertbates/36a2b373889255c588c9 to your computer and use it in GitHub Desktop.
Save rupertbates/36a2b373889255c588c9 to your computer and use it in GitHub Desktop.
Use jq to return only football matches scheduled for Feb 2016
curl -s "http://football.mobile-apps.guardianapis.com/football/competitions/100/matches" | jq '.[]|select(.kickOff|strptime("%Y-%m-%dT%H:%M:%SZ")|.[0] == 2016 and .[1] == 1)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment