Created
March 17, 2019 08:13
-
-
Save Cazzar/950e9aa86673d686d0744167698beef2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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