Skip to content

Instantly share code, notes, and snippets.

@zoonderkins
Created July 8, 2024 06:29
Show Gist options
  • Save zoonderkins/0215dff6dce4e6454f29a2b3f77e0905 to your computer and use it in GitHub Desktop.
Save zoonderkins/0215dff6dce4e6454f29a2b3f77e0905 to your computer and use it in GitHub Desktop.
linode-speedtest-script
#!/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