Guard IPv4/IPv6 results in separated files

This commit is contained in:
Yifan Gao 2021-04-11 01:13:02 +08:00
parent 11f92ee0a7
commit 1a70dda4a3

View File

@ -9,8 +9,8 @@ for file in operator/*.conf; do
operator=${operator##*/}
log_info "generating IP list of $operator ..."
get_asn $file
get_asn $file | xargs bgptools -b rib.txt | cidr-merger -s > result/${operator}.txt &
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger -s > result/${operator}6.txt &
get_asn $file | xargs bgptools -b rib.txt | cidr-merger -s | grep -v : > result/${operator}.txt &
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger -s | grep : > result/${operator}6.txt &
done
wait_exit