Update hosts file

This commit is contained in:
2025-07-15 12:45:15 +02:00
parent 3104fdc65b
commit d5fa923653
7 changed files with 58956 additions and 4 deletions
+4 -4
View File
@@ -4,11 +4,11 @@ set -euo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P )"
HOSTS="$(awk '{ sub(/#.*/,""); if (/\S/) print }' $DIR/list.txt)"
HOSTS="$(awk '{ sub(/#.*/,""); if (NF) print }' $DIR/list.txt | sort | uniq)"
HOSTS="$(awk '{ sub(/#.*/,""); if (NF) print }' $DIR/hostlists/*.txt | sort | uniq)"
for HOST in $HOSTS ; do
echo "127.0.0.1 $HOST"
if [[ "$HOST" != "localhost" ]]; then
echo "127.0.0.1 $HOST"
fi
done