Skip to content

Instantly share code, notes, and snippets.

@matburt
Created December 16, 2010 02:46
Show Gist options
  • Save matburt/742954 to your computer and use it in GitHub Desktop.
Save matburt/742954 to your computer and use it in GitHub Desktop.
reverse lookup ip addresses as first field in logfile
for each in `tail -n 100000 logfile | grep pattern | tr -s " " | awk '{print $1}' | sort | uniq`; do dig +short -x $each; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment