diff options
Diffstat (limited to 'rank-mirrors.sh')
-rwxr-xr-x | rank-mirrors.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rank-mirrors.sh b/rank-mirrors.sh new file mode 100755 index 0000000..ae9cf7d --- /dev/null +++ b/rank-mirrors.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# https://adufray.com/blog/2016/10/24/finding-the-fastest-freebsd-mirror + +for i in {1..15}; do + echo -n "ftp${i}.us.freebsd.org: "; + curl -o /dev/null -m 30 ftp://ftp${i}.us.freebsd.org/pub/FreeBSD/development/CVS-archive/projcvs-projects-archive.tar.gz 2>&1 | \ + tail -1 | \ + egrep -o '[^[:cntrl:]]+$'; +done |