Created
August 31, 2022 09:28
-
-
Save orihomie/128ab6111d49e0fd2ee2ae166ab8d5f7 to your computer and use it in GitHub Desktop.
Simple domain check
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
domains=($(cat $1 | awk '{print $1}')) | |
delta=1 | |
arraylength=${#domains[@]} | |
for (( i=0; i<${arraylength}; i=$((i+$delta)) )); | |
do | |
host "${domains[i]}" | |
echo "${domains[i]} checked" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sample
domains.txt
file:How to run: