Filter lines not containing an IP

Lines with a # symbol are not shown
This commit is contained in:
borekon 2023-06-12 13:06:37 +00:00
parent c553be7d25
commit 779f7b7f24

View File

@ -26,7 +26,7 @@ if [ -z "$1" ]
else else
dns=$1 dns=$1
fi 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 for j in $domains; do
echo -e "${YELLOW}$j${NC}:" echo -e "${YELLOW}$j${NC}:"
output=$(dig @$dns $j +short) output=$(dig @$dns $j +short)