Skip to content

Instantly share code, notes, and snippets.

@Cazzar
Created March 17, 2019 08:13
Show Gist options
  • Save Cazzar/950e9aa86673d686d0744167698beef2 to your computer and use it in GitHub Desktop.
Save Cazzar/950e9aa86673d686d0744167698beef2 to your computer and use it in GitHub Desktop.
#!/bin/bash
#speedtest-cli --json | jq '"speed download=" + (.download|tostring)'
#echo 'speed,name=Windsor,country=Australia download=89331796.8956253,upload=28083439.407922104,ping=17.93'
speedtest-cli --json | jq -r '"speed,name=" + .server.name + ",country=" + .server.country + " download=" + (.download|tostring) + ",upload=" + (.upload|tostring) + ",ping=" + (.ping|tostring)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment