Skip to content

Instantly share code, notes, and snippets.

@matt-coles
Created June 27, 2018 22:15
Show Gist options
  • Save matt-coles/dfd0d817a1df9da7cb86c894b48b3a96 to your computer and use it in GitHub Desktop.
Save matt-coles/dfd0d817a1df9da7cb86c894b48b3a96 to your computer and use it in GitHub Desktop.
Quick summary of the worldcup scores for an i3bar with jq
curl -s 'https://worldcup.sfg.io/matches/today' | jq -jr 'label $out | map(select(.status != "future")) | if (. | length) > 0 then . else break $out end | .[] | .home_team.code+" "+(.home_team.goals|tostring)+" - "+.away_team.code+" "+(.away_team.goals|tostring)+" | "' | sed 's/\(.*\) | /\1 /'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment