This commit is contained in:
2025-05-16 23:26:14 -07:00
commit 9b405f4fb7
3 changed files with 47 additions and 0 deletions
Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
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)"
for HOST in $HOSTS ; do
echo "127.0.0.1 $HOST"
done