Skip to content

Instantly share code, notes, and snippets.

@austintraver
Created June 11, 2020 22:23
Show Gist options
  • Save austintraver/9f4041d48c9ced19b7624c7bf78c62c1 to your computer and use it in GitHub Desktop.
Save austintraver/9f4041d48c9ced19b7624c7bf78c62c1 to your computer and use it in GitHub Desktop.
<<- EOF > basicquery.txt
Today's date is $(date)
The user ${USER} is on host ${HOST}
This program launched on ${TTY}
EOF
for domain in ${<(./domain_names.txt)}; {
print "Performing DNS query on ${domain}"
dig ${domain}
} > output.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment