commit c51318f26ac70c16d455134938714ef74f1534bc Author: Benjamin Collet Date: Mon Jan 31 14:45:58 2022 +0100 Initial commit diff --git a/get_prefixes.sh b/get_prefixes.sh new file mode 100755 index 0000000..9105231 --- /dev/null +++ b/get_prefixes.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +curl -s https://ftp.ripe.net/ripe/stats/delegated-ripencc-extended-latest | awk -F "|" '$3 == "ipv4" && $7 ~ /(reserved|available)/ && $5 >= 256 { printf "%-20s\t%s\n", $4 "/" int(32-log($5)/log(2)), $7 }' > $(dirname -- "${BASH_SOURCE[0]}")/ipv4_available_reserved.txt