mirror of
https://github.com/gaoyifan/china-operator-ip.git
synced 2025-07-13 21:02:37 +08:00
Guard IPv4/IPv6 results in separated files
This commit is contained in:
parent
11f92ee0a7
commit
1a70dda4a3
@ -9,8 +9,8 @@ for file in operator/*.conf; do
|
|||||||
operator=${operator##*/}
|
operator=${operator##*/}
|
||||||
log_info "generating IP list of $operator ..."
|
log_info "generating IP list of $operator ..."
|
||||||
get_asn $file
|
get_asn $file
|
||||||
get_asn $file | xargs bgptools -b rib.txt | cidr-merger -s > result/${operator}.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 > result/${operator}6.txt &
|
get_asn $file | xargs bgptools -b rib6.txt | cidr-merger -s | grep : > result/${operator}6.txt &
|
||||||
done
|
done
|
||||||
|
|
||||||
wait_exit
|
wait_exit
|
||||||
|
Loading…
Reference in New Issue
Block a user