Skip to content

Instantly share code, notes, and snippets.

@replaid
Created October 7, 2011 15:34
Show Gist options
  • Save replaid/1270549 to your computer and use it in GitHub Desktop.
Save replaid/1270549 to your computer and use it in GitHub Desktop.
Dig domains in an input file
sh my-fancy-script.sh input.txt > log-file
google.com
subscribermail.com
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