Created
June 27, 2018 22:15
-
-
Save matt-coles/dfd0d817a1df9da7cb86c894b48b3a96 to your computer and use it in GitHub Desktop.
Quick summary of the worldcup scores for an i3bar with jq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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