Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c=1
- if [ -n "$1" ]; then
- c="$1"
- echo -e "Averaging over "$c" attempts:\n"
- fi
- for world in {1..94}
- do
- case "$world" in
- # skip worlds that don't exist:
- 63|64|71|72|79|80)
- continue
- ;;
- # ping all others $c times and report average
- *)
- ping_time=$(ping -c "$c" oldschool${world}.runescape.com | tail -1 | awk -F '/' '{print $5}')
- echo "World ${world}: ${ping_time} ms"
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement