Created
October 7, 2011 15:34
-
-
Save replaid/1270549 to your computer and use it in GitHub Desktop.
Dig domains in an input file
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
sh my-fancy-script.sh input.txt > log-file |
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
google.com | |
subscribermail.com |
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
for i in `cat $1`; | |
do | |
for j in `dig $i +short`; | |
do | |
echo $i,$j | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment