From 779f7b7f248b738e40bcfbd3c059203253318b02 Mon Sep 17 00:00:00 2001 From: borekon Date: Mon, 12 Jun 2023 13:06:37 +0000 Subject: [PATCH] Filter lines not containing an IP Lines with a # symbol are not shown --- adblock_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adblock_test.sh b/adblock_test.sh index c8fbcc6..346110f 100644 --- a/adblock_test.sh +++ b/adblock_test.sh @@ -26,7 +26,7 @@ if [ -z "$1" ] else dns=$1 fi -domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts | shuf -n 10 | cut -d" " -f2) +domains=$(curl -s https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts | grep -v \# | shuf -n 10 | cut -d" " -f2) for j in $domains; do echo -e "${YELLOW}$j${NC}:" output=$(dig @$dns $j +short)