Created
July 8, 2024 06:29
-
-
Save zoonderkins/0215dff6dce4e6454f29a2b3f77e0905 to your computer and use it in GitHub Desktop.
linode-speedtest-script
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
#!/bin/bash | |
readonly -a locations=("atlanta" \ | |
"dallas" \ | |
"frankfurt" \ | |
"fremont" \ | |
"london" \ | |
"mumbai1" \ | |
"newark" \ | |
"singapore" \ | |
"tokyo2" \ | |
"toronto1") | |
readonly -a filenames=("atlanta" \ | |
"dallas" \ | |
"frankfurt" \ | |
"fremont" \ | |
"london" \ | |
"mumbai" \ | |
"newark" \ | |
"singapore" \ | |
"tokyo2" \ | |
"toronto") | |
declare x=0 | |
for i in "${locations[@]}"; do | |
wget -4 -O /dev/null speedtest."${locations[$x]}".linode.com/100MB-"${filenames[$x]}".bin | |
x=${x}+1 | |
done | |
rm *.bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment