Display number of IPs available instead of wrong mask
This commit is contained in:
parent
d8912c56fa
commit
ce65d5fa96
1 changed files with 4 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
#!/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
|
||||
curl -s https://ftp.ripe.net/ripe/stats/delegated-ripencc-extended-latest | awk -F "|" '
|
||||
$3 == "ipv4" && $7 ~ /(reserved|available)/ && $5 >= 256 {
|
||||
printf "%-15s\t%i\t%s\n", $4, $5, $7
|
||||
}' > $(dirname -- "${BASH_SOURCE[0]}")/ipv4_available_reserved.txt
|
||||
|
|
Loading…
Reference in a new issue