adds building of blockV6.list

This commit is contained in:
Tristan 2023-09-06 12:56:24 +02:00
parent bd349219bf
commit 963ef048db

13
buildAdBlocklistv6.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
awk -F'[\t ]+' '{
if (!match($0, /^[\t ]*(#|$)/)) {
if (NF>=2 && length($2)) {
host=$2
} else {
host=$1
}
if (!match(host, /^(localhost|local|localhost.localdomain|ip6-localnet|ip6-localhost$)$/)) {
print "::1 " host
}
}
}' adlists/* | sort > blockV6.list